Matrix3x2.CreateTranslation メソッド
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
平行移動行列を作成します。
CreateTranslation(Vector2) |
指定した 2 次元ベクトルから平行移動行列を作成します。 |
CreateTranslation(Single, Single) |
指定した X および Y 成分から平行移動行列を作成します。 |
- ソース:
- Matrix3x2.cs
- ソース:
- Matrix3x2.cs
- ソース:
- Matrix3x2.cs
指定した 2 次元ベクトルから平行移動行列を作成します。
public:
static System::Numerics::Matrix3x2 CreateTranslation(System::Numerics::Vector2 position);
C#
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
パラメーター
- 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 |
- ソース:
- Matrix3x2.cs
- ソース:
- Matrix3x2.cs
- ソース:
- Matrix3x2.cs
指定した X および Y 成分から平行移動行列を作成します。
public:
static System::Numerics::Matrix3x2 CreateTranslation(float xPosition, float yPosition);
C#
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
パラメーター
- 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 |
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。