rotation2D# snake.core.handlers.motion.utils.rotation2D(angle, dtype='float32')[source]# Create an array with a 2D rotation matrix. Parameters: angle (float) dtype (dtype[Any] | None | type[Any] | _SupportsDType[dtype[Any]] | str | tuple[Any, int] | tuple[Any, SupportsIndex | Sequence[SupportsIndex]] | list[Any] | _DTypeDict | tuple[Any, Any]) Return type: ndarray[Any, dtype[_ScalarType_co]]