PostGIS  2.2.7dev-r@@SVN_REVISION@@
static float box2df_size ( const BOX2DF *  a)
static

Definition at line 176 of file gserialized_gist_2d.c.

Referenced by box2df_union_size(), and gserialized_gist_penalty_2d().

177 {
178  float result;
179 
180  if ( a == NULL )
181  return (float)0.0;
182 
183  if ( (a->xmax <= a->xmin) || (a->ymax <= a->ymin) )
184  {
185  result = (float) 0.0;
186  }
187  else
188  {
189  result = (((double) a->xmax)-((double) a->xmin)) * (((double) a->ymax)-((double) a->ymin));
190  }
191 
192  return result;
193 }

Here is the caller graph for this function: