| 1 |
NAME SoComposeRotationFromTo SoCmpsRotFromTo "" { |
| 2 |
composes a rotation that rotates from one vector into another |
| 3 |
} |
| 4 |
|
| 5 |
DESC { |
| 6 |
This engine takes two inputs, representing a vector before |
| 7 |
and after a rotation has been applied. |
| 8 |
As output, it produces the rotation value that would cause the first |
| 9 |
vector to transform into the other. |
| 10 |
\p |
| 11 |
The input fields can have multiple values, allowing the engine to |
| 12 |
compose several rotations in parallel. |
| 13 |
Some inputs may have more values than others. In such cases, |
| 14 |
the last value of the shorter inputs will be repeated as necessary. |
| 15 |
} |
| 16 |
|
| 17 |
INCLUDE engines/SoCompose.h |
| 18 |
|
| 19 |
INPUT from { Vector before the rotation. } |
| 20 |
INPUT to { Vector after the rotation. } |
| 21 |
|
| 22 |
OUTPUT rotation { A rotation that transforms one vector into another. } |
| 23 |
|
| 24 |
METHOD Create SoComposeRotationFromTo() { Constructor } |
| 25 |
|
| 26 |
ALSO { SoComposeRotation, SoDecomposeRotationFromTo, SoEngineOutput } |