PointSubtract

Subtracts a 3-D point or a 3-D vector from a 3-D point.

Syntax

Rhino.PointSubtract (arrPoint1, arrPoint2)

Parameters

arrPoint1

Required.  Array.  The 3-D point to subtract from.

arrPoint2

Required.  Array.  The 3-D point or a 3-D vector to subtract.

Returns

Array

The resulting 3-D point if successful.

Null

On error.

Example

Dim arrPoint1, arrPoint2, arrPoint

arrPoint1 = Array(1,1,1)

arrPoint2 = Array(2,2,2)

arrPoint = Rhino.PointSubtract(arrPoint1, arrPoint2)

Rhino.Print Rhino.Pt2Str(arrPoint)

Also See

PointAdd

PointCompare

PointDivide

PointScale

PointTransform