Supported Browsers Home   
PtInRegion Previous   
SectRegionRect Next   
GA_regionFuncs Up   

SectRegion

Compute the Boolean intersection between two regions.

Declaration

GA_region * NAPI GA_regionFuncs::SectRegion(
    const GA_region *r1,
    const GA_region *r2)

Prototype In

snap/graphics.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

DiffRegion, UnionRegion, SectRegionRect

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