[]
        
(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)
Public Shared Sub TranslationRef(ByRef result As Matrix4x4, ByRef value As Vector3)
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)
Public Shared Sub TranslationRef(ByRef result As Matrix4x4, x As Single, y As Single, z As Single)
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.