diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-05-28 22:12:15 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-05-28 22:12:15 +0200 |
commit | 5b71d44e1803a171263e18987cd24fdbd7147cd2 (patch) | |
tree | 77d42df735eef5218c20e4f7e21eee0cb6228d3e /doc | |
parent | 94647453857bf111a5a3be1e45b1586b09d20e1b (diff) |
fix bug #278: geometry tutorial
(transplanted from 3cd1641dac7b9cc0f969d3ad656c15f037f2d1d1
)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/C08_TutorialGeometry.dox | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/C08_TutorialGeometry.dox b/doc/C08_TutorialGeometry.dox index b2890dbc6..983152ca5 100644 --- a/doc/C08_TutorialGeometry.dox +++ b/doc/C08_TutorialGeometry.dox @@ -48,7 +48,7 @@ Rotation2D<float> rot2(angle_in_radian);\endcode</td></tr> AngleAxis<float> aa(angle_in_radian, Vector3f(ax,ay,az));\endcode</td></tr> <tr><td> 3D rotation as a \ref Quaternion "quaternion"</td><td>\code -Quaternion<float> q = AngleAxis<float>(angle_in_radian, axis);\endcode</td></tr> +Quaternion<float> q; q = AngleAxis<float>(angle_in_radian, axis);\endcode</td></tr> <tr class="alt"><td> N-D Scaling</td><td>\code Scaling<float,2>(sx, sy) @@ -88,13 +88,13 @@ Any of the above transformation types can be converted to any other types of the or to a more generic type. Here are some additional examples: <table class="manual"> <tr><td>\code -Rotation2Df r = Matrix2f(..); // assumes a pure rotation matrix -AngleAxisf aa = Quaternionf(..); -AngleAxisf aa = Matrix3f(..); // assumes a pure rotation matrix -Matrix2f m = Rotation2Df(..); -Matrix3f m = Quaternionf(..); Matrix3f m = Scaling3f(..); -Affine3f m = AngleAxis3f(..); Affine3f m = Scaling3f(..); -Affine3f m = Translation3f(..); Affine3f m = Matrix3f(..); +Rotation2Df r; r = Matrix2f(..); // assumes a pure rotation matrix +AngleAxisf aa; aa = Quaternionf(..); +AngleAxisf aa; aa = Matrix3f(..); // assumes a pure rotation matrix +Matrix2f m; m = Rotation2Df(..); +Matrix3f m; m = Quaternionf(..); Matrix3f m; m = Scaling3f(..); +Affine3f m; m = AngleAxis3f(..); Affine3f m; m = Scaling3f(..); +Affine3f m; m = Translation3f(..); Affine3f m; m = Matrix3f(..); \endcode</td></tr> </table> |