polar


(polar point angle distance)

This function returns a 2D or 3D point, relative to input point, using provided angle and distance.

Arguments

point  2D or 3D point list (x y) resp. (x y z)
angle  (number) angle, in radians, measured from world X axis
distance  (number) distance from input point

Return

2D or 3D point list (x y) resp. (x y z), same dimension as input point

Example

(polar '(10 10) 1.0 3.0)
(11.620907 12.524413)


(polar '(10 10 10) 1.0 3.0)
(11.620907 12.524413 10.0)

Remarks

calculation is independent on the actual UCS, always performed as "in WCS"



©  Bricsys NV. All rights reserved.