warp.transform_set_rotation#

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

Set the rotational part of the transform xform in place, leaving its translation unchanged.

q is not normalized. In a kernel, xform.q = q is equivalent. See transform_set_translation() for the array-element caveat.

Parameters:
  • xform – Transformation to modify in place.

  • q – New rotation, expected to be a unit quaternion in (x, y, z, w) order.

See transform_set_translation() for a usage example.