Difference between revisions of "IntInBox"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function IntInBox(x, y: Integer; Box: TBox): Boolean; </source> ==Availability== SCAR Divi 3.25 > Current ==Description== Retu...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
==Availability== | ==Availability== | ||
− | SCAR Divi 3. | + | SCAR Divi 3.00 > Current |
==Description== | ==Description== | ||
Line 28: | Line 28: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | [[Category: | + | [[Category:Data Functions]] |
Latest revision as of 19:45, 5 July 2011
Definition
function IntInBox(x, y: Integer; Box: TBox): Boolean;
Availability
SCAR Divi 3.00 > Current
Description
Returns true if the coordinate given by (x, y) is inside of a box specified by the TBox Box.
Example
begin WriteLn(IntInBox(1, 1, Box(0, 0, 500, 500))); WriteLn(IntInBox(501, 1, Box(0, 0, 500, 500))); end.
Output:
1 0