warp.transform_get_rotation#

warp.transform_get_rotation(
xform: Transformation[Float],
) Quaternion[Float]#
  • Kernel: true
  • Python: true
  • Differentiable: true

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 as xform.

See transform_get_translation() for a usage example.