Click or drag to resize

UtilVectorToInverseRotation Method

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

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

Parameters

xAxis
Type: Microsoft.DirectXVector3
A vector defining the direction of the X-axis.
yAxis
Type: Microsoft.DirectXVector3
A vector defining the direction of the Y-axis.
zAxis
Type: Microsoft.DirectXVector3
A vector defining the direction of the Z-axis.

Return Value

Type: Matrix
The rotation matrix created.
See Also