TCircledSeries.PointToAngle
 
 
 

All Units  All Classes  Properties, Methods and Events  

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 Circled ellipses.

The formula used to calculate the Angle is:

result:=ArcTan(Abs(y-CircleYCenter)/Abs(x-CircleXCenter));

Angles are returned in radians from 0 to 2*PI.



Send us Help Feedback. Copyright 1995-2013 © by Steema Software. All Rights Reserved.