Matrix4x4.Decompose(Matrix4x4, Vector3, Quaternion, Vector3) 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.
Attempts to extract the scale, translation, and rotation components from the given scale, rotation, or translation matrix. The return value indicates whether the operation succeeded.
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
Parameters
- matrix
- Matrix4x4
The source matrix.
- scale
- Vector3
When this method returns, contains the scaling component of the transformation matrix if the operation succeeded.
- rotation
- Quaternion
When this method returns, contains the rotation component of the transformation matrix if the operation succeeded.
- translation
- Vector3
When the method returns, contains the translation component of the transformation matrix if the operation succeeded.
Returns
true
if matrix
was decomposed successfully; otherwise, false
.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για