typedef struct {

    double v[3];

} point_t;



typedef struct {

    double   x, y;

} point2D_t;



typedef struct {

    int         color;

    int         numverts;

    point_t     verts[MAX_POLY_VERTS];

} polygon_t;



typedef struct {

    int         color;

    int         numverts;

    point2D_t   verts[MAX_POLY_VERTS];

} polygon2D_t;



typedef struct convexobject_s {

    struct convexobject_s   *pnext;

    point_t                 center;

    double                  vdist;

    int                     numpolys;

    polygon_t               *ppoly;

} convexobject_t;



typedef struct {

    double  distance;

    point_t normal;

} plane_t;

