[osg-users] different result rotating Vec3d for Quat or Matrixd

Gianni Ambrosio g.ambrosio+osg at gmail.com
Tue Jan 24 07:19:39 PST 2017


Trajce Nikolov NICK wrote:
> 
> if you swap the order of the matrix and the vector will you get the same result?
> 

Yes, same result but ...
1) that's pretty counterintuitive: why should I have to change the order to get the same result? And unfortunately I guess that's not documented.
2) if I really need to multiply the matrix on the left side then there isn't a similar way to get the same transformation with a quaternion since "Vec3d * Quat" gives a compile time error.

Regards,
Gianni

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70042#70042








More information about the osg-users mailing list