[Overview][Types][Procedures and functions][Index] Reference for unit 'GraphMath' (#lcl)

Coords2Angles

Coords2Angles - convert the coords for Start and End Radial-Points into an Eccentric counter clockwise Angle and an Angle-Length

Declaration

Source position: graphmath.pp line 66

procedure Coords2Angles(

  X: Integer;

  Y: Integer;

  Width: Integer;

  Height: Integer;

  SX: Integer;

  SY: Integer;

  EX: Integer;

  EY: Integer;

  var Angle1: Extended;

  var Angle2: Extended

);

Description

Method: Coords2Angles

Params:   x,y,width,height,sx,sy,ex,ey, angle1,angle2
  Returns:  Nothing

  Use Coords2Angles to convert the coords for Start and End Radial-Points, such
  as are used in the Windows API Arc Pie and Chord routines, into an Eccentric
  (aka Radial) counter clockwise Angle and an Angle-Length, such as are used in
  X-Windows and GTK. The angles angle1 and angle2 are returned in 1/16th of a
  degree. For example, a full circle equals 5760 (16*360). Zero degrees is at
  the 3 o'clock position.
The latest version of this document can be found at lazarus-ccr.sourceforge.net.