PostGIS  3.4.0dev-r@@SVN_REVISION@@
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages

◆ nd_box_merge()

static int nd_box_merge ( const ND_BOX source,
ND_BOX target 
)
static

Expand the bounds of target to include source.

Definition at line 562 of file gserialized_estimate.c.

563 {
564  int d;
565  for ( d = 0; d < ND_DIMS; d++ )
566  {
567  target->min[d] = Min(target->min[d], source->min[d]);
568  target->max[d] = Max(target->max[d], source->max[d]);
569  }
570  return true;
571 }
#define ND_DIMS
The maximum number of dimensions our code can handle.
float4 max[ND_DIMS]
float4 min[ND_DIMS]

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

Referenced by compute_gserialized_stats_mode().

Here is the caller graph for this function: