This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Affine3f transformation quaternion retrieve

Tags: None
(comma "," separated)
beaver
Registered Member
Posts
1
Karma
0
Hi,
I'm supposed to apply a clustering algorithm to some object transformations.
I have to feed my clustering algorithm with the transformations translation and rotation.
Is it possible (or what is the best way) to retrieve the rotation part of a Affine3f transformation as a quaternion? I have to use the rotation as a quaternion because they are stable and compact.
Thank you

Cheers
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
there is a computeRotation method in Transform<> (i.e., Affine3f) which gives you a rotation matrix that you can then convert to a Quaternion using Quaternionf(rot), or quat = rot; ...


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]