BugInTheSYS

Untitled

Jan 27th, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.22 KB | None | 0 0
  1. procedure Circle2DGI2(x,y: Real; var Distance,Angle: Real);
  2. begin
  3.   Distance:=sqrt(x*x + y*y);
  4.   y:= y * 1/Distance;
  5.   if ( x >= 0 )
  6.    then angle := Arccos(y) * 180 / Pi
  7.    else angle := 180 + ArcCos(-y) * 180 / Pi;
  8. end;
Advertisement
Add Comment
Please, Sign In to add comment