Re: [eigen] AngleAxis toRotationMatrix

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


from the documentation of the ctor:

"Constructs and initialize the angle-axis rotation from an angle in
radian and an axis which must be normalized. "

(http://eigen.tuxfamily.org/dox/classEigen_1_1AngleAxis.html#7ebaf9cfb7892f6f9d0700c5347c5ffa)

so in your case ax1 is invalid.

gael.

On Wed, Mar 18, 2009 at 8:19 PM, Tim Winkler <Winkler.Tim@xxxxxxxxx> wrote:
> 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/