[Overview][Types][Procedures and functions][Index] |
Angles2Coords - convert an Eccentric Angle and an Angle-Length, into the coords for Start and End Radial-Points
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 |
); |
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.
lazarus-ccr.sourceforge.net |