PostGIS  2.2.7dev-r@@SVN_REVISION@@
static void geography_gidx_center ( GIDX *  gidx,
POINT3D p 
)
static

Definition at line 35 of file geography_btree.c.

References POINT3D::x, POINT3D::y, and POINT3D::z.

Referenced by geography_cmp(), geography_eq(), geography_ge(), geography_gt(), geography_le(), and geography_lt().

36 {
37  p->x = GIDX_GET_MIN(gidx, 0) + GIDX_GET_MAX(gidx, 0);
38  p->y = GIDX_GET_MIN(gidx, 1) + GIDX_GET_MAX(gidx, 1);
39  p->z = GIDX_GET_MIN(gidx, 2) + GIDX_GET_MAX(gidx, 2);
40 }
double y
Definition: liblwgeom.h:324
double x
Definition: liblwgeom.h:324
double z
Definition: liblwgeom.h:324

Here is the caller graph for this function: