Matrix4x4.Decompose(Matrix4x4, Vector3, Quaternion, Vector3) Metoda

Definice

Pokusí se extrahovat komponenty měřítka, překladu a otočení z dané škálovací, rotační nebo překladové matice. Vrácená hodnota označuje, jestli operace proběhla úspěšně.

public:
 static bool Decompose(System::Numerics::Matrix4x4 matrix, [Runtime::InteropServices::Out] System::Numerics::Vector3 % scale, [Runtime::InteropServices::Out] System::Numerics::Quaternion % rotation, [Runtime::InteropServices::Out] System::Numerics::Vector3 % translation);
public static bool Decompose (System.Numerics.Matrix4x4 matrix, out System.Numerics.Vector3 scale, out System.Numerics.Quaternion rotation, out System.Numerics.Vector3 translation);
static member Decompose : System.Numerics.Matrix4x4 * Vector3 * Quaternion * Vector3 -> bool
Public Shared Function Decompose (matrix As Matrix4x4, ByRef scale As Vector3, ByRef rotation As Quaternion, ByRef translation As Vector3) As Boolean

Parametry

matrix
Matrix4x4

Zdrojová matice.

scale
Vector3

Když se tato metoda vrátí, obsahuje komponentu škálování transformační matice, pokud operace proběhla úspěšně.

rotation
Quaternion

Když tato metoda vrátí, obsahuje součást rotace transformační matice, pokud operace byla úspěšná.

translation
Vector3

Když metoda vrátí, obsahuje komponentu překladu transformační matice, pokud operace proběhla úspěšně.

Návraty

true pokud matrix byl úspěšně rozložen, jinak hodnota false.

Platí pro