[]
        
(Showing Draft Content)

C1.Util.DX.Matrix4x4.WorldRef

WorldRef Method

WorldRef(out Matrix4x4, ref Vector3, ref Vector3, ref Vector3)

Creates a world matrix with the specified parameters.

Declaration
public static void WorldRef(out Matrix4x4 result, ref Vector3 position, ref Vector3 forward, ref Vector3 up)
Parameters
Type Name Description
Matrix4x4 result

The world matrix.

Vector3 position

The position of the object (used in translation operations).

Vector3 forward

The forward direction of the object.

Vector3 up

The upward direction of the object. Its value is usually [0, 1, 0].