Difference between revisions of "PointInBox"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function PointInBox(Point: TPoint; Box: TBox): Boolean; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Re...")
(No difference)

Revision as of 17:19, 3 July 2011

Definition

function PointInBox(Point: TPoint; Box: TBox): Boolean;

Availability

SCAR Divi 3.00 > Current

Description

Returns true if the coordinate given by Point is inside of a box specified by the TBox Box.

Example

begin
  WriteLn(PointInBox(Point(1, 1), Box(0, 0, 500, 500)));
  WriteLn(PointInBox(Point(501, 1), Box(0, 0, 500, 500)));
end.

Output:

1
0

See Also