MGL_sectRegion

Compute the Boolean intersection between two regions.

Declaration

region_t * MGLAPI MGL_sectRegion(
const region_t *r1,
const region_t *r2)

Prototype In

mgraph.h

Parameters

r1 | First region to compute intersection with
r2 | Second region to compute intersection with

Return Value

Resulting intersection region, or NULL if out of memory.

Description

Computes the Boolean intersection of two regions, returning the result in a new region. The region may actually be an empty region, in which case the bounding rectangle for the region will be an empty rectangle.

See Also

MGL_diffRegion, MGL_unionRegion, MGL_sectRegionRect

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com