quaternion_to_matrix#

de_ebsd.core.quaternion_to_matrix(q)[source]#

Unit quaternions (…, 4), order (a, b, c, d), to matrices (…, 3, 3).

The returned R rotates column vectors: v_rotated = R @ v.