Next Previous Up Top Contents Index

2.3 DUIM-Geometry Module

make-bounding-box

Function

Summary

Returns an object of the class <bounding-box>.

Signature

make-bounding-box x1 y1 x2 y2 => box

Arguments

x1
An instance of type <real>.

y1
An instance of type <real>.

x2
An instance of type <real>.

y2
An instance of type <real>.

Values

box
An instance of type <bounding-box>.

Library

duim-geometry

Module

duim-geometry

Description

Returns an object of the class <bounding-box> with the edges specified by x1, y1, x2, and y2. x1, y1, x2, and y2 are canonicalized in the following way. The min point of the box has an x coordinate that is the smaller of x1 and x2 and a y coordinate that is the smaller of y1 and y2. The max point of the box has an x coordinate that is the larger of x1 and x2 and a y coordinate that is the larger of y1 and y2. (Therefore, in a right-handed coordinate system the canonicalized values of x1, y1, x2, and y2 correspond to the left, top, right, and bottom edges of the box, respectively.)

This is a convenient shorthand function for make(<bounding-box>, left: top: right: bottom:)


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index