Matrix3x2.CreateTranslation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.