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

Angles2Coords

Angles2Coords - convert an Eccentric Angle and an Angle-Length, into the coords for Start and End Radial-Points

Declaration

Source position: graphmath.pp line 49

procedure Angles2Coords(

  X: Integer;

  Y: Integer;

  Width: Integer;

  Height: Integer;

  Angle1: Extended;

  Angle2: Extended;

  var SX: Integer;

  var SY: Integer;

  var EX: Integer;

  var EY: Integer

);

Description

Method: Angles2Coords

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

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