TPAFromCircle

From SCAR Divi Manual
Revision as of 13:12, 21 November 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function TPAFromCircle(const Center: TPoint; const Radius: Integer): TPointArray; </source> ==Availability== SCAR Divi 3.35 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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)]

See Also