Matrix3x3FromToMatrix Method |
Creates a rotation matrix that rotates a vector called "from" into another
vector called "to". Based on an algorithm by Tomas Moller and John Hudges:
"Efficiently Building a Matrix to Rotate One Vector to Another"
Journal of Graphics Tools, 4(4):1-4, 1999
Namespace: Internal.AssimpAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic static Matrix3x3 FromToMatrix(
Vector3 from,
Vector3 to
)
Parameters
- from Vector3
- Starting vector
- to Vector3
- Ending vector
Return Value
Matrix3x3Rotation matrix to rotate from the start to end.
See Also