Uredi

Deli z drugimi prek


Matrix3x2.CreateTranslation Method

Definition

Creates a translation matrix.

Overloads

CreateTranslation(Vector2)

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

CreateTranslation(Single, Single)

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

CreateTranslation(Vector2)

Source:
Matrix3x2.cs
Source:
Matrix3x2.cs
Source:
Matrix3x2.cs

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

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

Parameters

position
Vector2

The translation position.

Returns

The translation matrix.

Applies to

CreateTranslation(Single, Single)

Source:
Matrix3x2.cs
Source:
Matrix3x2.cs
Source:
Matrix3x2.cs

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

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

Parameters

xPosition
Single

The X position.

yPosition
Single

The Y position.

Returns

The translation matrix.

Applies to