PostGIS  2.5.1dev-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 246 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().

247 {
248  gbox->xmin = gbox->xmax = p->x;
249  gbox->ymin = gbox->ymax = p->y;
250  gbox->zmin = gbox->zmax = p->z;
251  return LW_SUCCESS;
252 }
double y
Definition: liblwgeom.h:342
double xmax
Definition: liblwgeom.h:295
#define LW_SUCCESS
Definition: liblwgeom.h:79
double x
Definition: liblwgeom.h:342
double z
Definition: liblwgeom.h:342
double zmax
Definition: liblwgeom.h:299
double ymin
Definition: liblwgeom.h:296
double xmin
Definition: liblwgeom.h:294
double ymax
Definition: liblwgeom.h:297
double zmin
Definition: liblwgeom.h:298
Here is the caller graph for this function: