Next Previous Up Top Contents Index

2.3 DUIM-Geometry Module

region-intersection

Generic function

Summary

Returns the intersection of two regions, as a region.

Signature

region-intersection region1 region2 => region

Arguments

region1
An instance of type <region>.

region2
An instance of type <region>.

Values

region
An instance of type <region>.

Library

duim-geometry

Module

duim-geometry

Description

Returns a region that contains all points that are in both of the regions region1 and region2 (possibly with some points removed in order to satisfy the dimensionality rule).

The result of region-intersection has dimensionality that is the minimum dimensionality of region1 and region2, or is $nowhere. For example, the intersection of two areas is either another area or $nowhere; the intersection of two paths is either another path or $nowhere; the intersection of a path and an area produces the path clipped to stay inside of the area.

Note: region-intersection may return either a simple region or a region set.

See also

region-union, page 59


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index