IsXformSimilarity

Verifies that a matrix is a similarity transformation. A similarity transformation can be broken into a sequence of dialations, translations, rotations, and reflections.

Syntax

rhinoscriptsyntax.IsXformSimilarity (xform)

rhinoscript.transformation.IsXformSimilarity (xform)

Parameters

xform

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

Returns

Boolean

True if this transformation is an orientation preserving similarity, otherwise False.

Example

import rhinoscriptsyntax as rs

xform = rs.BlockInstanceXform(block)

print rs.IsXformSimilarity(xform)

Also See

IsXformIdentity

IsXformZero