PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ box_penalty()

static float box_penalty ( BOX2DF *  original,
BOX2DF *  new 
)
static

Definition at line 1741 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1742 {
1743  float union_width,
1744  union_height;
1745 
1746  union_width = Max(original->xmax, new->xmax) -
1747  Min(original->xmin, new->xmin);
1748  union_height = Max(original->ymax, new->ymax) -
1749  Min(original->ymin, new->ymin);
1750  return union_width * union_height - (original->xmax - original->xmin) *
1751  (original->ymax - original->ymin);
1752 }
Here is the caller graph for this function: