Click or drag to resize

UtilVectorToInverseRotationLeft Method

Creates a rotation matrix to point opposite to a direction defined by two vectors.

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static Matrix VectorToInverseRotationLeft(
	Vector3 forward,
	Vector3 left
)

Parameters

forward
Type: Microsoft.DirectXVector3
A vector defining the forward direction (X axis).
left
Type: Microsoft.DirectXVector3
A vector defining the left direction (Z axis).

Return Value

Type: Matrix
The rotation matrix created.
See Also