PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ box2df_size()

static float box2df_size ( const BOX2DF *  a)
static

Definition at line 226 of file gserialized_gist_2d.c.

227 {
228  float result;
229 
230  if ( a == NULL || box2df_is_empty(a) )
231  return (float)0.0;
232 
233  if ( (a->xmax <= a->xmin) || (a->ymax <= a->ymin) )
234  {
235  result = (float) 0.0;
236  }
237  else
238  {
239  result = (((double) a->xmax)-((double) a->xmin)) * (((double) a->ymax)-((double) a->ymin));
240  }
241 
242  return result;
243 }
bool box2df_is_empty(const BOX2DF *a)

References box2df_is_empty().

Referenced by box2df_union_size(), and gserialized_gist_penalty_2d().

Here is the call graph for this function:
Here is the caller graph for this function: