PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ overlapND()

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

Definition at line 225 of file gserialized_spgist_nd.c.

226 {
227  int i, ndims;
228  bool result = true;
229 
230  ndims = Min(GIDX_NDIMS(cube_box->left), GIDX_NDIMS(query));
231 
232  for (i = 0; i < ndims; i++)
233  {
234  /* If the missing dimension was not padded with -+FLT_MAX */
235  if (GIDX_GET_MAX(cube_box->left, i) != FLT_MAX && GIDX_GET_MAX(query, i) != FLT_MAX)
236  result &= (GIDX_GET_MIN(cube_box->left, i) <= GIDX_GET_MAX(query, i)) &&
237  (GIDX_GET_MAX(cube_box->right, i) >= GIDX_GET_MIN(query, i));
238  }
239  return result;
240 }

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

Referenced by gserialized_spgist_inner_consistent_nd().

Here is the caller graph for this function: