Click or drag to resize

UtilVectorToInverseRotationRight 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: 10.0.7983.28765
Syntax
C#
public static Matrix VectorToInverseRotationRight(
	Vector3 forward,
	Vector3 right
)

Parameters

forward
Type: Microsoft.DirectXVector3
A vector defining the forward direction.
right
Type: Microsoft.DirectXVector3
A vector defining the right direction.

Return Value

Type: Matrix
The rotation matrix created.
See Also