Matrix.Decompose Method (Microsoft.Xna.Framework)

Decomposes this matrix to translation, rotation and scale elements. Returns true if matrix can be decomposed; false otherwise.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.398)
  • C#
  • VB
  • F#
public bool Decompose(
	out Vector3 scale, 
	out Quaternion rotation, 
	out Vector3 translation
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

scale
Type: out Microsoft.Xna.Framework.Vector3
Scale vector as an output parameter.
rotation
Type: out Microsoft.Xna.Framework.Quaternion
Rotation quaternion as an output parameter.
translation
Type: out Microsoft.Xna.Framework.Vector3
Translation vector as an output parameter.

Return Value

Type: System.Boolean
true if matrix can be decomposed; false otherwise.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web