ICircledSeries.PointToAngle
ICircledSeries
function PointToAngle(XCoord, YCoord: Integer): Double;
Type Library
TeeChartx
Description
The PointToAngle function returns the angle from the XY point parameter to the circle center. It currently works with Circled ellipses.
The formula used to calculate the Angle is:
result:=ArcTan(Abs(y-YCenter)/Abs(x-XCenter));
Angles are returned in radians from 0 to 2*PI.