rotation#
- snake.core.handlers.motion.utils.rotation(x=0.0, y=0.0, z=0.0, dtype='float32')[source]#
Create an array with a 4 dimensional rotation matrix.
- Parameters:
x (scalar) – Rotation around the origin (in rad).
y (scalar) – Rotation around the origin (in rad).
z (scalar) – Rotation around the origin (in rad).
dtype (dtype[Any] | None | type[Any] | _SupportsDType[dtype[Any]] | str | tuple[Any, int] | tuple[Any, SupportsIndex | Sequence[SupportsIndex]] | list[Any] | _DTypeDict | tuple[Any, Any])
- Returns:
r – The rotation matrix.
- Return type:
array, shape = (4, 4)