[vtkusers] vnl quaternion question
Richard Frank
rickfrank at me.com
Mon Dec 4 23:56:22 EST 2017
Hi,
I can rotation a point as below, but how to simply get back the original
point?
vnl_vector_fixed<float,3> pt = {0,1,0};
vnl_vector_fixed<float,3> axis = {0,0,1};
vnl_quaternion<float> q = vnl_quaternion<float>(axis,45 * M_PI / 180.0);
auto rotPt = q * pt * q.conjugate();
// how to invert?
Auto unRotPt = q.inverse() * rotPt; // doesn't seem to work
Thanks
Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171204/e7f554b5/attachment.html>
More information about the vtkusers
mailing list