/* geo-ext3.h
 *
 * Include file for geo-ext3.c (3D geometric extensions to Postgres)
 * used in combination with the standard Postgres "utils/geo-decls.h"
 */

typedef struct
 {
   float x, y, z;
 }
POINT3;

typedef struct
 {
   float  xh, yh, zh, xl, yl, zl;
 }
BOX3;

typedef struct
 {
   POINT3 p[2];
 }
LSEG3;

typedef struct
 {
   long    npts;
   POINT3  p[1];
 }
POLY3STRUCT;

typedef POLY3STRUCT POLYGON3, POLYLINE3;

POINT3    *Point3_in();
char      *Point3_out();

POLYGON3  *Polygon3_in();
char      *Polygon3_out();

POLYLINE3 *Polyline3_in();
char      *Polyline3_out();

BOX3      *Box3_in();
char      *Box3_out();
