From 57207239f330c2716442557a341f3a34e696b9ad Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 1 Nov 2011 09:40:51 +0100 Subject: [PATCH] Mention that the axis in AngleAxis have to be normalized. --- doc/C08_TutorialGeometry.dox | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/C08_TutorialGeometry.dox b/doc/C08_TutorialGeometry.dox index 452abda10..5657dee85 100644 --- a/doc/C08_TutorialGeometry.dox +++ b/doc/C08_TutorialGeometry.dox @@ -45,7 +45,8 @@ But note that unfortunately, because of how C++ works, you can \b not do this: Rotation2D rot2(angle_in_radian);\endcode 3D rotation as an \ref AngleAxis "angle + axis"\code -AngleAxis aa(angle_in_radian, Vector3f(ax,ay,az));\endcode +AngleAxis aa(angle_in_radian, Vector3f(ax,ay,az));\endcode +The axis vector must be normalized. 3D rotation as a \ref Quaternion "quaternion"\code Quaternion q; q = AngleAxis(angle_in_radian, axis);\endcode