Skip to content

Transform.DecomposeAffine (Vector3d., Transform.)

Public Class

Decomposes an affine transformation. A transformation is affine if it is valid and its last row is [0, 0, 0, 1]. 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

Syntax

public bool DecomposeAffine(
out Vector3d translation,
out Transform linear
)

Parameters

translation

Type: Rhino.Geometry.Vector3d.
Translation vector.

linear

Type: Rhino.Geometry.Transform.
Linear transformation.

Return Value

Type:Boolean
True if successful decomposition.

Remarks

If X.DecomposeAffine(T, L) is true then X == Translation(T)*L. DecomposeAffine(T,L) succeeds for all affine transformations and is a simple copying of values.