RhinoCommon API
TransformDecomposeAffine Method (Transform, Vector3d) |
Decomposes an affine transformation.
An affine transformation can be broken into a linear transformation and a translation.
Note, a perspective transformation is not affine.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 6.12

public bool DecomposeAffine( out Transform linear, out Vector3d translation )
Public Function DecomposeAffine ( <OutAttribute> ByRef linear As Transform, <OutAttribute> ByRef translation As Vector3d ) As Boolean
Parameters
- linear
- Type: Rhino.GeometryTransform
Linear transformation. - translation
- Type: Rhino.GeometryVector3d
Translation vector.
Return Value
Type: BooleanTrue if successful decomposition.

If X.DecomposeAffine(L, T) is true then X == L* Translation(T).
DecomposeAffine(L, T) may fail for affine transformations if L is not invertible,
and is more computationally expensive then X.DecomposeAffine(T, L).
