angle


(angle  point1  point2)

This function returns the angle between point1 and point2 in radians.

Arguments

point1  a 2d/3d point, marks the start point of the virtual line

point2  a 2d/3d point, marks the end point of the virtual line

Return

the angle in radians (double)

Example

(angle '(2 2) '(3 3 1))
0.785398163397448

Remarks

the angle of the line between point1 and point2 is measured against the 0 degree line (x axis) in counter-clockwise mode;
3D points are projected into XY plane (Z axis value is ignored)



©  Bricsys NV. All rights reserved.