PointAdd

Adds a 3-D point or a 3-D vector to a 3-D point.

Syntax

rhinoscriptsyntax.PointAdd (point1, point2)

rhinoscript.pointvector.PointAdd (point1, point2)

Parameters

point1

Required.  List of 3 numbers, Point3d, or Vector3d.  The 3-D point to add to.

point2

Required.  List of 3 numbers, Point3d, or Vector3d.  The 3-D point or a 3-D vector to add.

Returns

Point3d

The resulting 3-D point if successful.

None

On error.

Example

import rhinoscriptsyntax as rs

point1 = (1,1,1)

point2 = (2,2,2)

point = rs.PointAdd(point1, point2)

print point

Also See

PointCompare

PointDivide

PointScale

PointSubtract

PointTransform