| 1 |
NAME SoTransformVec3f SoXfV3f "" { |
| 2 |
transforms a 3D vector by a 4x4 matrix |
| 3 |
} |
| 4 |
|
| 5 |
DESC { |
| 6 |
This engine takes as input a three dimensional floating-point vector and |
| 7 |
a transformation matrix. The vector is assumed to be a row vector. |
| 8 |
\p |
| 9 |
The engine multiplies the vector by the matrix and returns the result |
| 10 |
in the output \vpoint\.. |
| 11 |
The output \vdirection\. contains the result when the matrix multiplication |
| 12 |
assumes the vector is a direction, and therefore ignores the translation |
| 13 |
part of the matrix. |
| 14 |
The output \vnormalDirection\. contains the normalized \vdirection\. |
| 15 |
} |
| 16 |
|
| 17 |
INCLUDE engines/SoTransformVec3f.h |
| 18 |
|
| 19 |
INPUT vector { Input row vector. } |
| 20 |
INPUT matrix { Input transformation matrix. } |
| 21 |
|
| 22 |
OUTPUT point { Vector transformed by matrix. } |
| 23 |
OUTPUT direction { Vector transformed by matrix, ignoring translation. } |
| 24 |
OUTPUT normalDirection { Normalized direction. } |
| 25 |
|
| 26 |
METHOD Create SoTransformVec3f() { Constructor } |
| 27 |
|
| 28 |
ALSO { SoEngineOutput } |