英語で読む

次の方法で共有


Matrix3x2.CreateTranslation メソッド

定義

平行移動行列を作成します。

オーバーロード

CreateTranslation(Vector2)

指定した 2 次元ベクトルから平行移動行列を作成します。

CreateTranslation(Single, Single)

指定した X および Y 成分から平行移動行列を作成します。

CreateTranslation(Vector2)

ソース:
Matrix3x2.cs
ソース:
Matrix3x2.cs
ソース:
Matrix3x2.cs

指定した 2 次元ベクトルから平行移動行列を作成します。

C#
public static System.Numerics.Matrix3x2 CreateTranslation(System.Numerics.Vector2 position);

パラメーター

position
Vector2

平行移動位置。

戻り値

平行移動行列。

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.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, 10
.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)

ソース:
Matrix3x2.cs
ソース:
Matrix3x2.cs
ソース:
Matrix3x2.cs

指定した X および Y 成分から平行移動行列を作成します。

C#
public static System.Numerics.Matrix3x2 CreateTranslation(float xPosition, float yPosition);

パラメーター

xPosition
Single

X 位置。

yPosition
Single

Y 位置。

戻り値

平行移動行列。

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.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, 10
.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