PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ box3d_to_gbox()

GBOX* box3d_to_gbox ( const BOX3D b3d)

Definition at line 91 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().

92 {
93  GBOX *b;
94  assert(b3d);
95 
96  b = lwalloc(sizeof(GBOX));
97 
98  b->xmin = b3d->xmin;
99  b->xmax = b3d->xmax;
100  b->ymin = b3d->ymin;
101  b->ymax = b3d->ymax;
102  b->zmin = b3d->zmin;
103  b->zmax = b3d->zmax;
104 
105  return b;
106 }
double xmax
Definition: liblwgeom.h:292
double ymin
Definition: liblwgeom.h:276
double zmax
Definition: liblwgeom.h:296
double ymin
Definition: liblwgeom.h:293
double xmin
Definition: liblwgeom.h:291
double xmin
Definition: liblwgeom.h:276
double ymax
Definition: liblwgeom.h:294
double xmax
Definition: liblwgeom.h:277
double zmin
Definition: liblwgeom.h:295
void * lwalloc(size_t size)
Definition: lwutil.c:227
double ymax
Definition: liblwgeom.h:277
double zmax
Definition: liblwgeom.h:277
double zmin
Definition: liblwgeom.h:276
Here is the call graph for this function:
Here is the caller graph for this function: