scipp.geometry.rotation_matrix_from_quaternion_coeffs

scipp.geometry.rotation_matrix_from_quaternion_coeffs

scipp.geometry.rotation_matrix_from_quaternion_coeffs(value)

Construct a rotation matrix from quaternions.

Parameters

value (Union[list, tuple, numpy.ndarray]) – Coefficients for the 4 quaternions in a one dimensional array of 4 elements.

Raises

If the input size is not 4.

Returns

3x3 rotation matrix

Return type

scipp._scipp.core.Variable