|
|
|
|
MGL_sectRegionRect
Compute the Boolean intersection between a region and a rectangle.
Declaration
region_t * MGLAPI MGL_sectRegionRect(
const region_t *r1,
const rect_t *r2)
Prototype In
mgraph.h
Parameters
r1 |
Region to compute intersection with |
r2 |
Rectangle to compute intersection with |
Return Value
Resulting intersection region, or NULL if out of memory.
Description
Computes the Boolean intersection of a region and a rectangle, 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. Note that this routine will compute the intersection faster than calling MGL_sectRegion with a simple region as the second region to intersect.
See Also
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com