Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Function.Angle of Point

sprotty-protocol / angleOfPoint

Function: angleOfPoint()

angleOfPoint(p): number

Defined in: utils/geometry.ts:170

Computes the angle in radians of the given point to the x-axis of the coordinate system. The result is in the range [-pi, pi].

Parameters

p

Point

A point in the Eucledian plane

Returns

number