PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ box3d_to_gbox()

GBOX* box3d_to_gbox ( const BOX3D b3d)

Definition at line 87 of file g_box.c.

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 }
void * lwalloc(size_t size)
Definition: lwutil.c:229
double xmax
Definition: liblwgeom.h:281
double zmin
Definition: liblwgeom.h:280
double ymax
Definition: liblwgeom.h:281
double ymin
Definition: liblwgeom.h:280
double zmax
Definition: liblwgeom.h:281
double xmin
Definition: liblwgeom.h:280
double ymax
Definition: liblwgeom.h:298
double zmax
Definition: liblwgeom.h:300
double xmax
Definition: liblwgeom.h:296
double zmin
Definition: liblwgeom.h:299
double ymin
Definition: liblwgeom.h:297
double xmin
Definition: liblwgeom.h:295

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().

Here is the call graph for this function:
Here is the caller graph for this function: