scipp.spatial.rotation_from_rotvec
scipp.spatial.rotation_from_rotvec¶
- scipp.spatial.rotation_from_rotvec(*, value, unit)¶
Creates a rotation transformation from a rotation vector.
This requires
scipy
to be installed, as is wrapsRotation.from_rotvec()
fromscipy.spatial.transform
.A rotation vector is a 3 dimensional vector which is co-directional to the axis of rotation and whose norm gives the angle of rotation.
- Parameters
value (Union[numpy.ndarray, list]) – A numpy vector of 3 values
unit (Union[scipp._scipp.core.Unit, str]) – The units of the 3 provided values. Should be either ‘rad’ or ‘deg’.
- Return type