[eigen] AngleAxis toRotationMatrix

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hi,

could you please give me a hint what I am missing here ? shouldnt this be the same ?

Vector3f ttt = Vector3f(1.0, 2.0, 3.0);

AngleAxis <float> ax1( 0.7, ttt );
AngleAxis <float> ax2( 0.7, ttt.normalized() );

Matrix3f rot1 = ax1.toRotationMatrix(); Matrix3f rot2 = ax2.toRotationMatrix(); cout <<"diff: "<< rot1 - rot2 << endl;

from:
http://eigen.tuxfamily.org/dox/classEigen_1_1AngleAxis.html

"Represents a 3D rotation as a rotation angle around an arbitrary 3D axis."


Sorry for any inconvenience,
Tim



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/