TPAFromCircle
From SCAR Divi Manual
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)]