scipp.spatial.rotations(*, dims, values)#

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.


values (Union[ndarray, list]) – a NumPy array of NumPy arrays corresponding to the quaternion coefficients (w, x*i, y*j, z*k)