GetAngle (Kernel)¶
-
GetAngle
(x1 y1 x2 y2)¶ Calculates the angle of the two points and returns it. It always generates a positive angle.
Parameters: - x1 (number) – The x coordinate of the first point.
- y1 (number) – The y coordinate of the first point.
- x2 (number) – The x coordinate of the second point.
- y2 (number) – The y coordinate of the second point.
Example:
; Get angle between (10, 20) and (100, 80) (= anAngle (GetAngle 10 20 100 80))