Click or drag to resize

UtilVectorToRotation Method

Creates a rotation matrix to convert from world co-ordinates to a co-ordinate frame defined by a set of vectors.

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static Matrix VectorToRotation(
	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