Bewerken

Delen via


Matrix4x4.CreateTranslation Method

Definition

Creates a translation matrix.

Overloads

CreateTranslation(Vector3)

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

CreateTranslation(Single, Single, Single)

Creates a translation matrix from the specified X, Y, and Z components.

CreateTranslation(Vector3)

Source:
Matrix4x4.cs
Source:
Matrix4x4.cs
Source:
Matrix4x4.cs

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

public:
 static System::Numerics::Matrix4x4 CreateTranslation(System::Numerics::Vector3 position);
public static System.Numerics.Matrix4x4 CreateTranslation (System.Numerics.Vector3 position);
static member CreateTranslation : System.Numerics.Vector3 -> System.Numerics.Matrix4x4
Public Shared Function CreateTranslation (position As Vector3) As Matrix4x4

Parameters

position
Vector3

The amount to translate in each axis.

Returns

The translation matrix.

Applies to

CreateTranslation(Single, Single, Single)

Source:
Matrix4x4.cs
Source:
Matrix4x4.cs
Source:
Matrix4x4.cs

Creates a translation matrix from the specified X, Y, and Z components.

public:
 static System::Numerics::Matrix4x4 CreateTranslation(float xPosition, float yPosition, float zPosition);
public static System.Numerics.Matrix4x4 CreateTranslation (float xPosition, float yPosition, float zPosition);
static member CreateTranslation : single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreateTranslation (xPosition As Single, yPosition As Single, zPosition As Single) As Matrix4x4

Parameters

xPosition
Single

The amount to translate on the X axis.

yPosition
Single

The amount to translate on the Y axis.

zPosition
Single

The amount to translate on the Z axis.

Returns

The translation matrix.

Applies to