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

Definition at line 200 of file gserialized_gist_2d.c.

Referenced by box2df_union_size(), and gserialized_gist_penalty_2d().

201 {
202  float result;
203 
204  if ( a == NULL )
205  return (float)0.0;
206 
207  if ( (a->xmax <= a->xmin) || (a->ymax <= a->ymin) )
208  {
209  result = (float) 0.0;
210  }
211  else
212  {
213  result = (((double) a->xmax)-((double) a->xmin)) * (((double) a->ymax)-((double) a->ymin));
214  }
215 
216  return result;
217 }

Here is the caller graph for this function: