PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ box2df_size()

static float box2df_size ( const BOX2DF *  a)
static

Definition at line 201 of file gserialized_gist_2d.c.

Referenced by box2df_union_size(), gserialized_gist_penalty_2d(), and gserialized_gist_picksplit_2d().

202 {
203  float result;
204 
205  if ( a == NULL )
206  return (float)0.0;
207 
208  if ( (a->xmax <= a->xmin) || (a->ymax <= a->ymin) )
209  {
210  result = (float) 0.0;
211  }
212  else
213  {
214  result = (((double) a->xmax)-((double) a->xmin)) * (((double) a->ymax)-((double) a->ymin));
215  }
216 
217  return result;
218 }
Here is the caller graph for this function: