Click or drag to resize

UtilVectorToRotation Method

Creates a rotation matrix to convert from world coordinates to a coordinate frame defined by a set of vectors.

Namespace: Demo3D.Common
Assembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntax
C#
public static Matrix VectorToRotation(
	Vector3 xAxis,
	Vector3 yAxis,
	Vector3 zAxis
)

Parameters

xAxis  Vector3
A vector defining the direction of the X-axis.
yAxis  Vector3
A vector defining the direction of the Y-axis.
zAxis  Vector3
A vector defining the direction of the Z-axis.

Return Value

Matrix
The rotation matrix created.
See Also