PostGIS  2.1.10dev-r@@SVN_REVISION@@
GBOX* box3d_to_gbox ( const BOX3D b3d)

Definition at line 74 of file g_box.c.

References lwalloc(), BOX3D::xmax, GBOX::xmax, BOX3D::xmin, GBOX::xmin, BOX3D::ymax, GBOX::ymax, BOX3D::ymin, GBOX::ymin, BOX3D::zmax, GBOX::zmax, BOX3D::zmin, and GBOX::zmin.

Referenced by BOX3D_to_BOX2D().

75 {
76  GBOX *b;
77  assert(b3d);
78 
79  b = lwalloc(sizeof(GBOX));
80 
81  b->xmin = b3d->xmin;
82  b->xmax = b3d->xmax;
83  b->ymin = b3d->ymin;
84  b->ymax = b3d->ymax;
85  b->zmin = b3d->zmin;
86  b->zmax = b3d->zmax;
87 
88  return b;
89 }
double xmax
Definition: liblwgeom.h:249
double ymin
Definition: liblwgeom.h:233
double zmax
Definition: liblwgeom.h:253
double ymin
Definition: liblwgeom.h:250
double xmin
Definition: liblwgeom.h:248
double xmin
Definition: liblwgeom.h:233
double ymax
Definition: liblwgeom.h:251
double xmax
Definition: liblwgeom.h:234
double zmin
Definition: liblwgeom.h:252
void * lwalloc(size_t size)
Definition: lwutil.c:175
double ymax
Definition: liblwgeom.h:234
double zmax
Definition: liblwgeom.h:234
double zmin
Definition: liblwgeom.h:233

Here is the call graph for this function:

Here is the caller graph for this function: