PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ geography_gidx_center()

static void geography_gidx_center ( GIDX *  gidx,
POINT3D p 
)
static

Definition at line 50 of file geography_btree.c.

References geography_lt(), PG_FUNCTION_INFO_V1(), POINT3D::x, POINT3D::y, and POINT3D::z.

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

51 {
52  p->x = GIDX_GET_MIN(gidx, 0) + GIDX_GET_MAX(gidx, 0);
53  p->y = GIDX_GET_MIN(gidx, 1) + GIDX_GET_MAX(gidx, 1);
54  p->z = GIDX_GET_MIN(gidx, 2) + GIDX_GET_MAX(gidx, 2);
55 }
double y
Definition: liblwgeom.h:339
double x
Definition: liblwgeom.h:339
double z
Definition: liblwgeom.h:339
Here is the call graph for this function:
Here is the caller graph for this function: