Polar



Your Ad Here

Returns the 3D point that is a specified angle and distance from a 3D point.

Syntax

Rhino.Polar (arrPoint, dblAngle, dblDistance [, arrPlane])

Parameters

arrPoint

Required.  Array.  The 3D point to transform.

dblAngle

Required.  Number.  The angle in degrees.

dblDistance

Required.  Number.  The distance.

arrPlane

Optional.  Array.  The plane to base the transformation. Of omitted, the world x-y plane is used. The elements of a plane array are as follows:

0

Required.  The plane's origin (3D point).

1

Required.  The plane's X axis direction (3D vector).

2

Required.  The plane's Y axis direction (3D vector).

3

Optional.  The plane's Z axis direction (3D vector).

Returns

Array

The resulting 3D point if successful.

Null

On error.

Example

Dim arrPoint, arrResult

arrPoint = Array(1.0, 1.0, 0.0)

arrResult = Rhino.Polar(arrPoint, 45.0, 1.414214)

Rhino.Print Rhino.Pt2Str(arrResult)

Also See

PointAdd

PointCompare

PointDivide

PointScale

PointSubtract

Return to Rhino Index


Your Ad Here