Edytuj

Udostępnij za pośrednictwem


Matrix4.CreateTranslation Method

Definition

Overloads

CreateTranslation(Vector3)
CreateTranslation(Vector3, Matrix4)

Creates a translation matrix.

CreateTranslation(Single, Single, Single)
CreateTranslation(Single, Single, Single, Matrix4)

Creates a translation matrix.

CreateTranslation(Vector3)

public static OpenTK.Matrix4 CreateTranslation (OpenTK.Vector3 vector);
static member CreateTranslation : OpenTK.Vector3 -> OpenTK.Matrix4

Parameters

vector
Vector3

Returns

Applies to

CreateTranslation(Vector3, Matrix4)

Creates a translation matrix.

public static void CreateTranslation (ref OpenTK.Vector3 vector, out OpenTK.Matrix4 result);
static member CreateTranslation :  *  -> unit

Parameters

vector
Vector3

The translation vector.

result
Matrix4

The resulting Matrix4 instance.

Applies to

CreateTranslation(Single, Single, Single)

public static OpenTK.Matrix4 CreateTranslation (float x, float y, float z);
static member CreateTranslation : single * single * single -> OpenTK.Matrix4

Parameters

x
Single
y
Single
z
Single

Returns

Applies to

CreateTranslation(Single, Single, Single, Matrix4)

Creates a translation matrix.

public static void CreateTranslation (float x, float y, float z, out OpenTK.Matrix4 result);
static member CreateTranslation : single * single * single *  -> unit

Parameters

x
Single

X translation.

y
Single

Y translation.

z
Single

Z translation.

result
Matrix4

The resulting Matrix4 instance.

Applies to