Determines if a point lies inside a rectangle.
graphics-ports
inside-rectangle rectangle x y => result
rectangle⇩ |
A list of integers. |
x⇩ |
An integer. |
y⇩ |
An integer. |
result |
A boolean. |
The function inside-rectangle
returns t
if the point (x y) is inside rectangle.
rectangle is expected to be ordered; if rectangle is specified by (left top right bottom), then left must be less than right, and top must be less than bottom. The lines y = bottom
and x = right
are not considered to be inside the rectangle.
CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:44