TPAFromBox

From SCAR Divi Manual
Revision as of 08:48, 3 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function TPAFromBox(const Box: TBox): TPointArray; </source> ==Availability== SCAR Divi 3.26 > Current ==Description== Generat...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function TPAFromBox(const Box: TBox): TPointArray;

Availability

SCAR Divi 3.26 > Current

Description

Generates a TPointArray containing all coordinates within the given TBox Box. The coordiantes are stored row-by-row in the TPointArray.

Example

begin
  WriteLn('TPointArray[' + TPAToStr(TPAFromBox(Box(3, 1, 5, 5))) + ']');
end.

Output:

TPointArray[(3,1);(4,1);(3,2);(4,2);(3,3);(4,3);(3,4);(4,4)]