PointTransform

Transforms a 3-D point.

Syntax

rhinoscriptsyntax.PointTransform (point, xform)

rhinoscript.pointvector.PointTransform (point, xform)

Parameters

point

Required.  List of 3 numbers or Point3d.  The 3-D point to transform.

xform

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

Returns

Point3d

The resulting 3-D point if successful.

None

On error.

Example

# Translate (move) objects by (10,10,0)

import rhinoscriptsyntax as rs

point = 5,5,0

matrix = rs.XformTranslation((10,10,0))

result = rs.PointTransform(point, matrix)

print result

Also See

PointAdd

PointCompare

PointDivide

PointScale

PointSubtract