# Matrix4x4.CreateTranslationMatrix4x4.CreateTranslationMatrix4x4.CreateTranslationMatrix4x4.CreateTranslation Method

## Definition

Creates a translation matrix.

 CreateTranslation(Vector3) CreateTranslation(Vector3) CreateTranslation(Vector3) CreateTranslation(Vector3) Creates a translation matrix from the specified 3-dimensional vector. CreateTranslation(Single, Single, Single) CreateTranslation(Single, Single, Single) CreateTranslation(Single, Single, Single) CreateTranslation(Single, Single, Single) Creates a translation matrix from the specified X, Y, and Z components.

## CreateTranslation(Vector3)CreateTranslation(Vector3)CreateTranslation(Vector3)CreateTranslation(Vector3)

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 Vector3 Vector3 Vector3

The amount to translate in each axis.

#### Returns

The translation matrix.

## CreateTranslation(Single, Single, Single)CreateTranslation(Single, Single, Single)CreateTranslation(Single, Single, Single)CreateTranslation(Single, Single, Single)

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 Single Single Single

The amount to translate on the X axis.

yPosition
Single Single Single Single

The amount to translate on the Y axis.

zPosition
Single Single Single Single

The amount to translate on the Z axis.

#### Returns

The translation matrix.