Vector2.Transform Metoda

Definice

Transformuje vektor.

Přetížení

Transform(Vector2, Matrix3x2)

Transformuje vektor podle zadané matice 3x2.

Transform(Vector2, Matrix4x4)

Transformuje vektor podle zadané matice 4x4.

Transform(Vector2, Quaternion)

Transformuje vektor podle zadané hodnoty otočení Quaternion.

Transform(Vector2, Matrix3x2)

Transformuje vektor podle zadané matice 3x2.

public:
 static System::Numerics::Vector2 Transform(System::Numerics::Vector2 position, System::Numerics::Matrix3x2 matrix);
public static System.Numerics.Vector2 Transform (System.Numerics.Vector2 position, System.Numerics.Matrix3x2 matrix);
static member Transform : System.Numerics.Vector2 * System.Numerics.Matrix3x2 -> System.Numerics.Vector2
Public Shared Function Transform (position As Vector2, matrix As Matrix3x2) As Vector2

Parametry

position
Vector2

Vektor, který se má transformovat.

matrix
Matrix3x2

Matice transformace.

Návraty

Vector2

Transformovaný vektor.

Platí pro

Transform(Vector2, Matrix4x4)

Transformuje vektor podle zadané matice 4x4.

public:
 static System::Numerics::Vector2 Transform(System::Numerics::Vector2 position, System::Numerics::Matrix4x4 matrix);
public static System.Numerics.Vector2 Transform (System.Numerics.Vector2 position, System.Numerics.Matrix4x4 matrix);
static member Transform : System.Numerics.Vector2 * System.Numerics.Matrix4x4 -> System.Numerics.Vector2
Public Shared Function Transform (position As Vector2, matrix As Matrix4x4) As Vector2

Parametry

position
Vector2

Vektor, který se má transformovat.

matrix
Matrix4x4

Matice transformace.

Návraty

Vector2

Transformovaný vektor.

Platí pro

Transform(Vector2, Quaternion)

Transformuje vektor podle zadané hodnoty otočení Quaternion.

public:
 static System::Numerics::Vector2 Transform(System::Numerics::Vector2 value, System::Numerics::Quaternion rotation);
public static System.Numerics.Vector2 Transform (System.Numerics.Vector2 value, System.Numerics.Quaternion rotation);
static member Transform : System.Numerics.Vector2 * System.Numerics.Quaternion -> System.Numerics.Vector2
Public Shared Function Transform (value As Vector2, rotation As Quaternion) As Vector2

Parametry

value
Vector2

Vektor, který se má otočit.

rotation
Quaternion

Otočení, které se má použít.

Návraty

Vector2

Transformovaný vektor.

Platí pro