39 if (key1->
x > key2->
x)
41 else if (key1->
x < key2->
x)
43 else if (key1->
y > key2->
y)
45 else if (key1->
y < key2->
y)
106 return ((
dtsearch(ps, &p)) ? 1 : 0);
163 offsetof(
mpair, link),
176 dp->
disc = intMPairDisc;
194 for (p = dp->
flist; p; p = next) {
void freePS(PointSet *ps)
void insertPS(PointSet *ps, point pt)
int(* Dtcompar_f)(Dt_t *, void *, void *, Dtdisc_t *)
CDT_API int dtclose(Dt_t *)
void *(* Dtmake_f)(Dt_t *, void *, Dtdisc_t *)
CDT_API Dtlink_t * dtflatten(Dt_t *)
CDT_API Dtmethod_t * Dtoset
int insertPM(PointMap *pm, int x, int y, int v)
CDT_API Dt_t * dtopen(Dtdisc_t *, Dtmethod_t *)
int updatePM(PointMap *pm, int x, int y, int v)
int isInPS(PointSet *ps, int x, int y)
point * pointsOf(PointSet *ps)
void clearPM(PointMap *ps)
CDT_API int dtsize(Dt_t *)
void addPS(PointSet *ps, int x, int y)
void freePM(PointMap *ps)
int inPS(PointSet *ps, point pt)
void(* Dtfree_f)(Dt_t *, void *, Dtdisc_t *)