PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ box3d_to_gbox()

GBOX* box3d_to_gbox ( const BOX3D b3d)

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

88 {
89  GBOX *b;
90  assert(b3d);
91 
92  b = lwalloc(sizeof(GBOX));
93 
94  b->xmin = b3d->xmin;
95  b->xmax = b3d->xmax;
96  b->ymin = b3d->ymin;
97  b->ymax = b3d->ymax;
98  b->zmin = b3d->zmin;
99  b->zmax = b3d->zmax;
100 
101  return b;
102 }
double xmax
Definition: liblwgeom.h:295
double ymin
Definition: liblwgeom.h:279
double zmax
Definition: liblwgeom.h:299
double ymin
Definition: liblwgeom.h:296
double xmin
Definition: liblwgeom.h:294
double xmin
Definition: liblwgeom.h:279
double ymax
Definition: liblwgeom.h:297
double xmax
Definition: liblwgeom.h:280
double zmin
Definition: liblwgeom.h:298
void * lwalloc(size_t size)
Definition: lwutil.c:227
double ymax
Definition: liblwgeom.h:280
double zmax
Definition: liblwgeom.h:280
double zmin
Definition: liblwgeom.h:279
Here is the call graph for this function:
Here is the caller graph for this function: