PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ box3d_to_gbox()

GBOX* box3d_to_gbox ( const BOX3D b3d)

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

77 {
78  GBOX *b;
79  assert(b3d);
80 
81  b = lwalloc(sizeof(GBOX));
82 
83  b->xmin = b3d->xmin;
84  b->xmax = b3d->xmax;
85  b->ymin = b3d->ymin;
86  b->ymax = b3d->ymax;
87  b->zmin = b3d->zmin;
88  b->zmax = b3d->zmax;
89 
90  return b;
91 }
double xmax
Definition: liblwgeom.h:277
double ymin
Definition: liblwgeom.h:261
double zmax
Definition: liblwgeom.h:281
double ymin
Definition: liblwgeom.h:278
double xmin
Definition: liblwgeom.h:276
double xmin
Definition: liblwgeom.h:261
double ymax
Definition: liblwgeom.h:279
double xmax
Definition: liblwgeom.h:262
double zmin
Definition: liblwgeom.h:280
void * lwalloc(size_t size)
Definition: lwutil.c:199
double ymax
Definition: liblwgeom.h:262
double zmax
Definition: liblwgeom.h:262
double zmin
Definition: liblwgeom.h:261
Here is the call graph for this function:
Here is the caller graph for this function: