warp.transform_set_rotation#
- warp.transform_set_rotation( ) None#
Set the rotational part of the transform
xformin place, leaving its translation unchanged.qis not normalized. In a kernel,xform.q = qis equivalent. Seetransform_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.