TCircledSeries.PointToAngle
TCircledSeries
function PointToAngle(X, Y: Integer): Double;
Unit
Series
Description
The PointToAngle function returns the angle from the XY point parameter to the circle center. It currently works with TCircledSeries.Circled ellipses.
The formula used to calculate the Angle is:
result:=ArcTan(Abs(y-TCircledSeries.CircleYCenter)/Abs(x-TCircledSeries.CircleXCenter));
Angles are returned in radians from 0 to 2*PI.