| Home
| Previous
| Next
| Up

PtInRegion

Determines if a point is contained in a specified region.

Declaration

ibool NAPI GA_regionFuncs::PtInRegion(
const GA_region *r,
N_int32 x,
N_int32 y)

Prototype In

snap/graphics.h

Parameters

r | Region to test
x | x coordinate to test for inclusion
y | y coordinate to test for inclusion

Return Value

True if the point is contained in the region, false if not.

Description

This function determines if a specified point is contained within a particular region. Note that if the region has a hole it in, and the point lies within the hole, then the point is classified as not being included in the region.

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