Matrix.Decompose Method
Extracts the scalar, translation, and rotation components from a 3D scale/rotate/translate (SRT) Matrix.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public bool Decompose (
out Vector3 scale,
out Quaternion rotation,
out Vector3 translation
)
Parameters
- scale
[OutAttribute] The scalar component of the transform matrix, expressed as a Vector3. - rotation
[OutAttribute] The rotation component of the transform matrix, expressed as a Quaternion. - translation
[OutAttribute] The translation component of the transform matrix, expressed as a Vector3.
Return Value
true if the Matrix can be decomposed; false otherwise.
See Also
Reference
Matrix Structure
Matrix Members
Microsoft.Xna.Framework Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista