PostGIS  2.3.7dev-r@@SVN_REVISION@@
static float box_penalty ( BOX2DF *  original,
BOX2DF *  new 
)
static

Definition at line 1648 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1649 {
1650  float union_width,
1651  union_height;
1652 
1653  union_width = Max(original->xmax, new->xmax) -
1654  Min(original->xmin, new->xmin);
1655  union_height = Max(original->ymax, new->ymax) -
1656  Min(original->ymin, new->ymin);
1657  return union_width * union_height - (original->xmax - original->xmin) *
1658  (original->ymax - original->ymin);
1659 }

Here is the caller graph for this function: