Matrix4x4::Decompose Method

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.

Namespace:  System.Numerics
Assembly:  System.Numerics.Vectors (in System.Numerics.Vectors.dll)

public:
static bool Decompose(
	Matrix4x4 matrix, 
	[OutAttribute] Vector3% scale, 
	[OutAttribute] Quaternion% rotation, 
	[OutAttribute] Vector3% translation
)

Parameters

matrix
Type: System.Numerics::Matrix4x4

The source matrix.

scale
Type: System.Numerics::Vector3%

When this method returns, contains the scaling component of the transformation matrix if the operation succeeded.

rotation
Type: System.Numerics::Quaternion%

When this method returns, contains the rotation component of the transformation matrix if the operation succeeded.

translation
Type: System.Numerics::Vector3%

When the method returns, contains the translation component of the transformation matrix if the operation succeeded.

Return Value

Type: System::Boolean
true if matrix was decomposed successfully; otherwise, false.
Show: