Geom.angle()
Description
Get the angle of a point.
Syntax
JSGeom.angle(x: Number, y: Number) -> Number
Parameters
| Parameter |
Type |
Description |
x |
Number |
X-coordinate value. |
y |
Number |
Y-coordinate value. |
Return value
| Type |
Description |
Number |
Angle of the point in degrees relative to the [0,0] coordinate center. Zero corresponds to the direction towards three o'clock, increasing the angle clockwise. |
Example
| JS |
|---|
| let result = Geom.angle(100, 100);
console.info(result); // output: 45
|
Last update: 14 August 2025, 18:47