#include "pointset.h"
Include dependency graph for pointset.c:
Go to the source code of this file.
Data Structures | |
struct | pair |
struct | mpair |
struct | MPairDisc |
Functions | |
PointSet * | newPS (void) |
void | freePS (PointSet *ps) |
void | insertPS (PointSet *ps, point pt) |
void | addPS (PointSet *ps, int x, int y) |
int | inPS (PointSet *ps, point pt) |
int | isInPS (PointSet *ps, int x, int y) |
int | sizeOf (PointSet *ps) |
point * | pointsOf (PointSet *ps) |
PointMap * | newPM (void) |
void | clearPM (PointMap *ps) |
void | freePM (PointMap *ps) |
int | insertPM (PointMap *pm, int x, int y, int v) |
void addPS | ( | PointSet * | ps, | |
int | x, | |||
int | y | |||
) |
Definition at line 80 of file pointset.c.
References dtinsert, point::x, and point::y.
Referenced by fillLine().
void clearPM | ( | PointMap * | ps | ) |
void freePM | ( | PointMap * | ps | ) |
Definition at line 182 of file pointset.c.
References _dt_s::disc, dtclose(), MPairDisc::flist, free(), mpair::link, and _dtlink_s::right.
void freePS | ( | PointSet * | ps | ) |
int insertPM | ( | PointMap * | pm, | |
int | x, | |||
int | y, | |||
int | v | |||
) |
int isInPS | ( | PointSet * | ps, | |
int | x, | |||
int | y | |||
) |
PointMap* newPM | ( | void | ) |
Definition at line 167 of file pointset.c.
References MPairDisc::disc, dtopen(), Dtoset, MPairDisc::flist, and GNEW.
PointSet* newPS | ( | void | ) |
Definition at line 65 of file pointset.c.
References dtopen(), and Dtoset.
Referenced by putGraphs().
int sizeOf | ( | PointSet * | ps | ) |