Click or drag to resize

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.Assimp
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public static Matrix3x3 FromToMatrix(
	Vector3 from,
	Vector3 to
)

Parameters

from  Vector3
Starting vector
to  Vector3
Ending vector

Return Value

Matrix3x3
Rotation matrix to rotate from the start to end.
See Also