Click or drag to resize

UtilRotationToAlign Method

Returns a matrix that when applied to myMatrix aligns the object with the forward (X) and up (Y) axes

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static Matrix RotationToAlign(
	Matrix myMatrix,
	Vector3 targetForward,
	Vector3 targetUp
)

Parameters

myMatrix
Type: Microsoft.DirectXMatrix
Initial matrix rotation
targetForward
Type: Microsoft.DirectXVector3
Forward axis (X)
targetUp
Type: Microsoft.DirectXVector3
Up axis (Y)

Return Value

Type: Matrix
Align matrix.
See Also