Click or drag to resize

TransformDecomposeRigid Method

Decomposes a rigid transformation. The transformation must be affine.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 6.12
Syntax
public TransformRigidType DecomposeRigid(
	out Vector3d translation,
	out Transform rotation,
	double tolerance
)

Parameters

translation
Type: Rhino.GeometryVector3d
Translation vector.
rotation
Type: Rhino.GeometryTransform
Proper rotation transformation, where R*Transpose(R)=I and det(R)=1.
tolerance
Type: SystemDouble
The evaluation tolerance.

Return Value

Type: TransformRigidType
The rigid type.
Remarks
If X.DecomposeRigid(T, R) is 1, then X ~ Translation(T)*R. If X.DecomposeRigid(T, R) is -1, then X ~ Transform(-1) * Translation(T)*R. DecomposeRigid will find the closest rotation to the linear part of this transformation.
See Also