PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ containND()

static bool containND ( CubeGIDX cube_box,
GIDX *  query 
)
static

Definition at line 244 of file gserialized_spgist_nd.c.

245 {
246  int i, ndims;
247  bool result = true;
248 
249  ndims = Min(GIDX_NDIMS(cube_box->left), GIDX_NDIMS(query));
250 
251  for (i = 0; i < ndims; i++)
252  {
253  /* If the missing dimension was not padded with -+FLT_MAX */
254  if (GIDX_GET_MAX(cube_box->left, i) != FLT_MAX && GIDX_GET_MAX(query, i) != FLT_MAX)
255  result &= (GIDX_GET_MAX(cube_box->right, i) >= GIDX_GET_MAX(query, i)) &&
256  (GIDX_GET_MIN(cube_box->left, i) <= GIDX_GET_MIN(query, i));
257  }
258  return result;
259 }

References CubeGIDX::left, and CubeGIDX::right.

Referenced by gserialized_spgist_inner_consistent_nd().

Here is the caller graph for this function: