warp.quat_rotate_inv#
- warp.quat_rotate_inv( ) Vector[Float, Literal[3]]#
Return
vecrotated by the inverse of the rotation thatquatrepresents.For example, if
quatrotates vectors from a body’s local frame into world space, this maps a world-space vector into the body’s local frame.- Parameters:
quat – Rotation quaternion, with unit length. Gradient updates do not preserve its unit length, so re-normalize it after each update.
vec – Vector to rotate.
- Returns:
The rotated vector, equal to
quat_rotate(quat_inverse(quat), vec).