Re: [eigen] AngleAxis toRotationMatrix |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] AngleAxis toRotationMatrix
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Wed, 18 Mar 2009 20:26:45 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=yRlRrJa6EWCohxGb+3iMGZNHESzgPa0aLVu45cO5p+w=; b=acY1ZEGb+Vzsr0/w2kyZhGDRzikPLmitxnCq+jkXUHV3nAK/cfhvtSjbTkpiPiqpL+ oAX2fmwZ3qBrPu/+HsdgiBHCBF4nQ09VtBt127xYkN5CqWrBOOTwrTXaKxjqXco5Tol/ Fljt7R7BZsCI2riHlBSalGlZNDZdkuN8wTj+M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=PhMEaQ/SRv4efvJtGECOun8JfCO7Lqn/KthyiotXttDhONUG3Dakzrz74DKQOEuwFq wBbCnusVGs8NT7+bX236ZIsUddS1pSZmgc8J1TKCrZYPxADLY5D1+/9d2TLRZBB37/eX LMX7zujBZCfa4zSOXLQkOe1jaV+3fIR6GhAXk=
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
>
>
>