Matrix4x4.Decompose(Matrix4x4, Vector3, Quaternion, Vector3) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Försöker extrahera skalnings-, översättnings- och rotationskomponenterna från den angivna skalnings-, rotations- eller översättningsmatrisen. Returvärdet anger om åtgärden lyckades.
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
Parametrar
- matrix
- Matrix4x4
Källmatrisen.
- scale
- Vector3
När den här metoden returnerar, innehåller skalningskomponenten i transformeringsmatrisen om åtgärden lyckades.
- rotation
- Quaternion
När den här metoden returnerar, innehåller rotationskomponenten i transformeringsmatrisen om åtgärden lyckades.
- translation
- Vector3
När metoden returnerar, innehåller översättningskomponenten i transformeringsmatrisen om åtgärden lyckades.
Returer
trueom matrix har dekompositerats, annars . false