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

Definition at line 1517 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1518 {
1519  float union_width,
1520  union_height;
1521 
1522  union_width = Max(original->xmax, new->xmax) -
1523  Min(original->xmin, new->xmin);
1524  union_height = Max(original->ymax, new->ymax) -
1525  Min(original->ymin, new->ymin);
1526  return union_width * union_height - (original->xmax - original->xmin) *
1527  (original->ymax - original->ymin);
1528 }

Here is the caller graph for this function: