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

◆ 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 458 of file gserialized_estimate.c.

459{
460 int d;
461 for ( d = 0; d < ND_DIMS; d++ )
462 {
463 target->min[d] = Min(target->min[d], source->min[d]);
464 target->max[d] = Max(target->max[d], source->max[d]);
465 }
466 return true;
467}

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: