Click or drag to resize

UtilVectorToInverseRotationUp 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: 19.01.00
Syntax
C#
public static Matrix VectorToInverseRotationUp(
	Vector3 forward,
	Vector3 up
)

Parameters

forward  Vector3
A vector defining the forward direction.
up  Vector3
A vector defining the up direction.

Return Value

Matrix
The rotation matrix created.
See Also