rotation3d#
- snake.core.handlers.motion.utils.rotation3d(x=0.0, y=0.0, z=0.0, dtype='float32')[source]#
Create an array with a 3 dimensional rotation matrix.
- Parameters:
x (scalar) – Rotation around each axis (in rad).
y (scalar) – Rotation around each axis (in rad).
z (scalar) – Rotation around each axis (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 = (3, 3)