Прочитај на енглеском Уреди

Делите путем


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

Definition

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.

C#
public static bool Decompose(System.Numerics.Matrix4x4 matrix, out System.Numerics.Vector3 scale, out System.Numerics.Quaternion rotation, out System.Numerics.Vector3 translation);

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

Производ Верзије
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0