[vtkusers] Relative Rotation with VTK Transform

David Gobbi david.gobbi at gmail.com
Tue Feb 16 10:46:54 EST 2016

Hi Lonni,

The RotateWXYZ() method takes an angle (in degrees) and a rotation axis,
rather than a quaternion.

angle = 2.0*atan2(sqrt(q[1]*q[1] + q[2]*q[2] + q[3]*q[3]), q[0]) * 180.0/pi

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160216/513f3885/attachment.html>

More information about the vtkusers mailing list