warp.transform_get_rotation#
- warp.transform_get_rotation(
- xform: Transformation[Float],
Return the rotation component of
xform(xform.q).The quaternion is returned as stored, in
(x, y, z, w)order, without normalization.- Parameters:
xform – Transformation to read from.
- Returns:
The rotation from components 3 through 6 of
xform, as a quaternion of the same scalar type asxform.
See
transform_get_translation()for a usage example.