[]
        
(Showing Draft Content)

C1.Util.DX.Matrix4x4.TranslationRef

TranslationRef Method

TranslationRef(out Matrix4x4, ref Vector3)

Creates a translation matrix from the specified 3-dimensional vector.

Declaration
public static void TranslationRef(out Matrix4x4 result, ref Vector3 value)
Parameters
Type Name Description
Matrix4x4 result

When the method completes, contains the created translation matrix.

Vector3 value

The amount to translate in each axis.

TranslationRef(out Matrix4x4, float, float, float)

Creates a translation matrix using the specified offsets.

Declaration
public static void TranslationRef(out Matrix4x4 result, float x, float y, float z)
Parameters
Type Name Description
Matrix4x4 result

When the method completes, contains the created translation matrix.

float x

X-coordinate offset.

float y

Y-coordinate offset.

float z

Z-coordinate offset.