polar (AutoLISP)

Returns the UCS 3D point at a specified angle and distance from a point

Supported Platforms: Windows and Mac OS

Signature

(polar pt ang dist)
pt

Type: List

A 2D or 3D point.

ang

Type: Integer or Real

An angle expressed in radians relative to the world X axis. Angles increase in the counterclockwise direction, independent of the current construction plane.

dist

Type: Integer or Real

Distance from the specified pt.

Return Values

Type: List

A 2D or 3D point, depending on the type of point specified by pt.

Examples

Supplying a 3D point to polar:

(polar '(1 1 3.5) 0.785398 1.414214)
(2.0 2.0 3.5)

Supplying a 2D point to polar :

(polar '(1 1) 0.785398 1.414214)
(2.0 2.0)