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

Definition at line 179 of file gserialized_gist_2d.c.

References result.

Referenced by box2df_union_size(), and gserialized_gist_penalty_2d().

180 {
181  float result;
182 
183  if ( a == NULL )
184  return (float)0.0;
185 
186  if ( (a->xmax <= a->xmin) || (a->ymax <= a->ymin) )
187  {
188  result = (float) 0.0;
189  }
190  else
191  {
192  result = (((double) a->xmax)-((double) a->xmin)) * (((double) a->ymax)-((double) a->ymin));
193  }
194 
195  return result;
196 }
char ** result
Definition: liblwgeom.h:218

Here is the caller graph for this function: