aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/TutorialGeometry.dox
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-09-07 11:08:41 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-09-07 11:08:41 +0200
commit7fad309631c8aba63ef666f513b5f1995cddb663 (patch)
treecc0873754b5a09a0a50f128fe1e45f692a2130e8 /doc/TutorialGeometry.dox
parent7031a851d45a8526474ac1ac972ad12a48e99f1a (diff)
Fix link and code formating
Diffstat (limited to 'doc/TutorialGeometry.dox')
-rw-r--r--doc/TutorialGeometry.dox9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/TutorialGeometry.dox b/doc/TutorialGeometry.dox
index 372a275de..2e1420f98 100644
--- a/doc/TutorialGeometry.dox
+++ b/doc/TutorialGeometry.dox
@@ -126,11 +126,12 @@ Apply the transformation to a \b vector </td><td>\code
VectorNf vec1, vec2;
vec2 = t.linear() * vec1;\endcode</td></tr>
<tr><td>
-Apply a \em general transformation \n to a \b normal \b vector
-(<a href="http://femto.cs.uiuc.edu/faqs/cga-faq.html#S5.27">explanations</a>)</td><td>\code
+Apply a \em general transformation \n to a \b normal \b vector \n
+</td><td>\code
VectorNf n1, n2;
MatrixNf normalMatrix = t.linear().inverse().transpose();
n2 = (normalMatrix * n1).normalized();\endcode</td></tr>
+<tr><td colspan="2">(See subject 5.27 of this <a href="http://www.faqs.org/faqs/graphics/algorithms-faq">faq</a> for the explanations)</td></tr>
<tr class="alt"><td>
Apply a transformation with \em pure \em rotation \n to a \b normal \b vector
(no scaling, no shear)</td><td>\code
@@ -231,8 +232,8 @@ On the other hand, since there exist 24 different conventions, they are pretty c
to create a rotation matrix according to the 2-1-2 convention.</td><td>\code
Matrix3f m;
m = AngleAxisf(angle1, Vector3f::UnitZ())
-* * AngleAxisf(angle2, Vector3f::UnitY())
-* * AngleAxisf(angle3, Vector3f::UnitZ());
+ * AngleAxisf(angle2, Vector3f::UnitY())
+ * AngleAxisf(angle3, Vector3f::UnitZ());
\endcode</td></tr>
</table>