Matrix4x4.Decompose(Matrix4x4, Vector3, Quaternion, Vector3) 方法

定义

尝试从给定缩放、旋转或平移矩阵中提取缩放、平移和旋转分量。 返回值指示操作是否成功。

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

参数

matrix
Matrix4x4

源矩阵。

scale
Vector3

此方法返回时,如果操作成功,则包含转换矩阵的缩放分量。

rotation
Quaternion

此方法返回时,如果操作成功,则包含转换矩阵的旋转分量。

translation
Vector3

此方法返回时,如果操作成功,则包含变换矩阵的平移分量。

返回

true 如果 matrix 已成功分解,则为 ;否则为 false

适用于