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);

Parameters

position
Vector2

The translation position.

Returns

The translation matrix.

Applies to

.NET 9 dan versi lain
Produk Versi
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0

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);

Parameters

xPosition
Single

The X position.

yPosition
Single

The Y position.

Returns

The translation matrix.

Applies to

.NET 9 dan versi lain
Produk Versi
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0