Click or drag to resize

UtilVectorToRotationRight Method

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

Namespace: Demo3D.Common
Assembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntax
C#
public static Matrix VectorToRotationRight(
	Vector3 forward,
	Vector3 right
)

Parameters

forward  Vector3
A vector defining the forward direction (X axis).
right  Vector3
A vector defining the right direction (-Z axis).

Return Value

Matrix
The rotation matrix created.
See Also