All Manuals > CAPI Reference Manual > 2 GP Reference Entries

NextPrevUpTopContentsIndex

inside-rectangle

Function
Summary

Determines if a point lies inside a rectangle.

Package

graphics-ports

Signature

inside-rectangle rectangle x y => result

Arguments

rectangle

A list of integers.

x

An integer.

y

An integer.

Values

result

A boolean.

Description

The inside-rectangle function returns t if the point ( x y ) is inside rectangle . The rectangle is expected to be ordered; if the rectangle is specified by ( left top right bottom ), then left must be less than right , and bottom must be less than top . The lines y = bottom and x = right are not considered to be inside the rectangle.


CAPI Reference Manual - 15 Dec 2011

NextPrevUpTopContentsIndex