All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS Reference Entries

get-enclosing-rectangle Function

Summary

Returns the smallest rectangle enclosing the given points.

Package

graphics-ports

Signature

get-enclosing-rectangle &rest points => left, top, right, bottom

Arguments
points
Real numbers.
Values
left
A real number.
top
A real number.
right
A real number.
bottom
A real number.
Description

The function get-enclosing-rectangle returns four values, describing the rectangle which exactly encloses the input points. points must be a (possibly empty) list of alternating x and y values. If no points are given the function returns the null (unspecified) rectangle, which is four nils.


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:44