PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ gbox_init_point3d()

int gbox_init_point3d ( const POINT3D p,
GBOX gbox 

Initialize a GBOX using the values of the point.

Definition at line 216 of file g_box.c.

References LW_SUCCESS, POINT3D::x, GBOX::xmax, GBOX::xmin, POINT3D::y, GBOX::ymax, GBOX::ymin, POINT3D::z, GBOX::zmax, and GBOX::zmin.

Referenced by edge_calculate_gbox(), and edge_calculate_gbox_slow().

217 {
218  gbox->xmin = gbox->xmax = p->x;
219  gbox->ymin = gbox->ymax = p->y;
220  gbox->zmin = gbox->zmax = p->z;
221  return LW_SUCCESS;
222 }
double y
Definition: liblwgeom.h:324
double xmax
Definition: liblwgeom.h:277
#define LW_SUCCESS
Definition: liblwgeom.h:65
double x
Definition: liblwgeom.h:324
double z
Definition: liblwgeom.h:324
double zmax
Definition: liblwgeom.h:281
double ymin
Definition: liblwgeom.h:278
double xmin
Definition: liblwgeom.h:276
double ymax
Definition: liblwgeom.h:279
double zmin
Definition: liblwgeom.h:280
Here is the caller graph for this function: