| Home
| Previous
| Next
| Up

SectRegionRect

Compute the Boolean intersection between a region and a rectangle.

Declaration

GA_region * NAPI GA_regionFuncs::SectRegionRect(
const GA_region *r1,
const GA_rect *r2)

Prototype In

snap/graphics.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 SectRegion with a simple region as the second region to intersect.

See Also

SectRegion, DiffRegion, UnionRegion

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