Next Previous Up Top Contents Index

2 GP Reference Entries

inside-rectangle

Function

Summary

Determines if a point lies inside a rectangle.
Signature

inside-rectangle rectangle x y => result

Arguments

rectangle

A list of integers

x

An integer

y

An integer

Values

result

A boolean

Description

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

LispWorks CAPI Reference Manual - 17 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker