warp.quat_to_matrix#
- warp.quat_to_matrix(
- quat: Quaternion[Float],
Return the 3x3 rotation matrix of the rotation that
quatrepresents.- Parameters:
quat – Rotation quaternion, with unit length. Gradient updates do not preserve its unit length, so re-normalize it after each update.
- Returns:
The rotation matrix
mthat rotates column vectors, such thatm @ vequalsquat_rotate(quat, v).