Decomposes matrix of a skew-free 3D transformation into separate translation, scaling and rotation values.

Namespace: Ico.Windows.Media.Media3D
Assembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public static bool Decompose(
	Matrix3D inputMatrix,
	out Vector3D translate,
	out Vector3D scale,
	out Vector3D rotate
)
Visual Basic
Public Shared Function Decompose ( _
	inputMatrix As Matrix3D, _
	<OutAttribute> ByRef translate As Vector3D, _
	<OutAttribute> ByRef scale As Vector3D, _
	<OutAttribute> ByRef rotate As Vector3D _
) As Boolean
JScript
public static function Decompose(
	inputMatrix : Matrix3D, 
	translate : Vector3D, 
	scale : Vector3D, 
	rotate : Vector3D
) : boolean

Parameters

inputMatrix
Type: System.Windows.Media.Media3D..::..Matrix3D
Input 4x4 matrix.
translate
Type: System.Windows.Media.Media3D..::..Vector3D%
Decomposed translation values.
scale
Type: System.Windows.Media.Media3D..::..Vector3D%
Decomposed scale coefficients.
rotate
Type: System.Windows.Media.Media3D..::..Vector3D%
Decomposed rotation angles around X/Y/Z axis (in degrees).

Return Value

True, if the decomposition was successful.

See Also