Matrix4x4.CreateTranslationMatrix4x4.CreateTranslationMatrix4x4.CreateTranslationMatrix4x4.CreateTranslation Method

Definice

Vytvoří překlad matice. Creates a translation matrix.

Přetížení

 CreateTranslation(Vector3) CreateTranslation(Vector3) CreateTranslation(Vector3) CreateTranslation(Vector3) Vytvoří matice překladu zadané 3rozměrné vektoru. 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) Vytvoří překlad matice ze zadaného X, Y a Z komponenty. Creates a translation matrix from the specified X, Y, and Z components.

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

Vytvoří matice překladu zadané 3rozměrné vektoru. 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``

Parametry

position
Vector3 Vector3 Vector3 Vector3

Velikost převodu na každou osu. The amount to translate in each axis.

Návraty

Překlad matice. The translation matrix.

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

Vytvoří překlad matice ze zadaného X, Y a Z komponenty. 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``

Parametry

xPosition
Single Single Single Single

Velikost pro převod na ose X. The amount to translate on the X axis.

yPosition
Single Single Single Single

Velikost pro převod na ose Y. The amount to translate on the Y axis.

zPosition
Single Single Single Single

Velikost pro převod na ose Z. The amount to translate on the Z axis.

Návraty

Překlad matice. The translation matrix.