PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ nd_box_init_bounds()

static int nd_box_init_bounds ( ND_BOX a)
static

Prepare an ND_BOX for bounds calculation: set the maxes to the smallest thing possible and the mins to the largest.

Definition at line 529 of file gserialized_estimate.c.

References ND_BOX_T::max, ND_BOX_T::min, ND_DIMS, and TRUE.

Referenced by compute_gserialized_stats_mode().

530 {
531  int d;
532  for ( d = 0; d < ND_DIMS; d++ )
533  {
534  a->min[d] = FLT_MAX;
535  a->max[d] = -1 * FLT_MAX;
536  }
537  return TRUE;
538 }
#define ND_DIMS
The maximum number of dimensions our code can handle.
float4 max[ND_DIMS]
float4 min[ND_DIMS]
#define TRUE
Definition: dbfopen.c:169
Here is the caller graph for this function: