(polar)

(polar point angle distance)


Find a point using polar coordinates.


This function returns a 3-D point at an angle and distance from another point. The given point is rotated by the angle specified in radians, then moved the specified distance from the point.

Examples

Code Returns
(polar '(1 2) 1.570796 2) (1 4)
(polar '(3.13397 1) 0.523598775 1 (4 1.5)

NOTE The angle is measured in radians relative to the x-axis with radians increasing counterclockwise.

Tell me about...

(angle point1 point2)

(distance point1 point2)

LISP Compatibility

pi

Programming Overview of LISP (LISt Processing) Language