rotvec_to_euler¶
giant.rotations.core.conversions
:
- giant.rotations.core.conversions.rotvec_to_euler(vector, order='xyz')[source]¶
This function converts a rotation vector into euler angles in the specified order.
Currently this is done through calls to
rotvec_to_rotmat()
followed by a call torotmat_to_euler()
.- Parameters:
vector (Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) – The rotation vector(s) to convert into Euler angles
order (Literal['xyz', 'xzy', 'xyx', 'xzx', 'yxz', 'yzx', 'yxy', 'yzy', 'zxy', 'zyx', 'zyz', 'zxz']) – the desired order of the Euler angles
- Returns:
The euler angles in the specified order as a tuple of 3 floats or 3 1d numpy arrays
- Return type:
tuple[float | ndarray[tuple[Any, …], dtype[float64]], float | ndarray[tuple[Any, …], dtype[float64]], float | ndarray[tuple[Any, …], dtype[float64]]]