PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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}
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition cu_print.c:267

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

Referenced by gserialized_spgist_inner_consistent_nd().

Here is the caller graph for this function: