scipp.spatial.rotation
scipp.spatial.rotation¶
- scipp.spatial.rotation(*, value)¶
Creates a rotation-type variable from the provided quaternion coefficients.
The quaternion coefficients are provided in scalar-last order (x, y, z, w), where x, y, z and w form the quaternion w + xi + yj + zk.
- Parameters
value (Union[numpy.ndarray, list]) – a numpy array or list with length 4, corresponding to the quaternion coefficients (x*i, y*j, z*k, w)