Difference between revisions of "TPAFromCircle"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function TPAFromCircle(const Center: TPoint; const Radius: Integer): TPointArray; </source> ==Availability== SCAR Divi 3.35 ...") |
(No difference)
|
Latest revision as of 13:12, 21 November 2012
Definition
function TPAFromCircle(const Center: TPoint; const Radius: Integer): TPointArray;
Availability
SCAR Divi 3.35 > Current
Description
Generates a TPointArray containing all coordinates within the given circle, defined by the center point given in Center and he radius given by Radius. The coordinates are stored row-by-row in the TPointArray.
Example
begin WriteLn('TPointArray[' + TPAToStr(TPAFromCircle(Point(0, 0), 2)) + ']'); end.
Output:
TPointArray[(0,-2);(-1,-1);(0,-1);(1,-1);(-2,0);(-1,0);(0,0);(1,0);(2,0);(-1,1);(0,1);(1,1);(0,2)]