UtilGetAlignMatrix(Vector3, Vector3) Method |
Get the rotation matrix needed to align the initial vector with the target vector.
Namespace: Demo3D.CommonAssembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntaxpublic static Matrix GetAlignMatrix(
Vector3 initial,
Vector3 target
)
Parameters
- initial Vector3
- Initial vector
- target Vector3
- Vector to align with
Return Value
MatrixAlignment matrix
Remarks
See Also