mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix broken link on transforming normals
This commit is contained in:
@@ -127,7 +127,7 @@ VectorNf vec1, vec2;
|
|||||||
vec2 = t.linear() * vec1;\endcode</td></tr>
|
vec2 = t.linear() * vec1;\endcode</td></tr>
|
||||||
<tr><td>
|
<tr><td>
|
||||||
Apply a \em general transformation \n to a \b normal \b vector
|
Apply a \em general transformation \n to a \b normal \b vector
|
||||||
(<a href="http://www.cgafaq.info/wiki/Transforming_normals">explanations</a>)</td><td>\code
|
(<a href="http://femto.cs.uiuc.edu/faqs/cga-faq.html#S5.27">explanations</a>)</td><td>\code
|
||||||
VectorNf n1, n2;
|
VectorNf n1, n2;
|
||||||
MatrixNf normalMatrix = t.linear().inverse().transpose();
|
MatrixNf normalMatrix = t.linear().inverse().transpose();
|
||||||
n2 = (normalMatrix * n1).normalized();\endcode</td></tr>
|
n2 = (normalMatrix * n1).normalized();\endcode</td></tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user