Contents  All Classes  Index A-Z  All Units


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.


Submit your feedback about this page.

Copyright 1995-2007 © by Steema Software. All Rights Reserved.