XformInverse

Returns the inverse of a non-singular transformation matrix.

Syntax

rhinoscriptsyntax.XformInverse (xform)

rhinoscript.transformation.XformInverse (xform)

Parameters

xform

Required.  List or Rhino.Geometry.Transform.  A 4x4 transformation matrix.

Returns

Transform

The inverted 4x4 transformation matrix if successful.

None

If matrix is non-singular, On error.

Example

import rhinoscriptsyntax as rs

xform = rs.BlockInstanceXform(obj)

if xform:

    rs.TransformObject( obj, rs.XformInverse(xform) )

Also See

XformDeterminant