# Matrix4x4.CreateTranslation メソッド

## オーバーロード

 指定した 3 次元ベクトルから平行移動行列を作成します。Creates a translation matrix from the specified 3-dimensional vector. 指定した X、Y、Z 成分から平行移動行列を作成します。Creates a translation matrix from the specified X, Y, and Z components.

## CreateTranslation(Vector3)

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

position
Vector3

## CreateTranslation(Single, Single, Single)

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

#### パラメーター

xPosition
Single

X 軸方向の平行移動量。The amount to translate on the X axis.

yPosition
Single

Y 軸方向の平行移動量。The amount to translate on the Y axis.

zPosition
Single

Z 軸方向の平行移動量。The amount to translate on the Z axis.