PostGIS  2.1.10dev-r@@SVN_REVISION@@
int gbox_init_point3d ( const POINT3D p,
GBOX gbox 

Initialize a GBOX using the values of the point.

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

198 {
199  gbox->xmin = gbox->xmax = p->x;
200  gbox->ymin = gbox->ymax = p->y;
201  gbox->zmin = gbox->zmax = p->z;
202  return LW_SUCCESS;
203 }
double y
Definition: liblwgeom.h:296
double xmax
Definition: liblwgeom.h:249
#define LW_SUCCESS
Definition: liblwgeom.h:55
double x
Definition: liblwgeom.h:296
double z
Definition: liblwgeom.h:296
double zmax
Definition: liblwgeom.h:253
double ymin
Definition: liblwgeom.h:250
double xmin
Definition: liblwgeom.h:248
double ymax
Definition: liblwgeom.h:251
double zmin
Definition: liblwgeom.h:252

Here is the caller graph for this function: