PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ box_penalty()

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

Definition at line 1805 of file gserialized_gist_2d.c.

1806 {
1807  float union_width,
1808  union_height;
1809 
1810  union_width = Max(original->xmax, new->xmax) -
1811  Min(original->xmin, new->xmin);
1812  union_height = Max(original->ymax, new->ymax) -
1813  Min(original->ymin, new->ymin);
1814  return union_width * union_height - (original->xmax - original->xmin) *
1815  (original->ymax - original->ymin);
1816 }

Referenced by gserialized_gist_picksplit_2d().

Here is the caller graph for this function: