DPolyArray Class Reference

List of all members.

Public Member Functions

int FindPoly (const DPoint2 &p) const

Static Public Attributes

static int s_previous_poly = -1


Detailed Description

A collection of DPolygon2 objects.

Member Function Documentation

int DPolyArray::FindPoly ( const DPoint2 p  )  const

Return the index of the polygon at a specified point, or -1 if there is no polygon there.

For speed, it first test the polygon which was found last time. For spatially linear testing, this can be a 10x speedup.


Generated on Wed Dec 24 13:08:40 2008 for vtdata library by  doxygen 1.5.7.1