PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ box2df_validate()

void box2df_validate ( BOX2DF *  b)
inline

Definition at line 223 of file gserialized_gist_2d.c.

224 {
225  float tmp;
226 
227  if ( box2df_is_empty(b) )
228  return;
229 
230  if ( b->xmax < b->xmin )
231  {
232  tmp = b->xmin;
233  b->xmin = b->xmax;
234  b->xmax = tmp;
235  }
236  if ( b->ymax < b->ymin )
237  {
238  tmp = b->ymin;
239  b->ymin = b->ymax;
240  b->ymax = tmp;
241  }
242  return;
243 }
bool box2df_is_empty(const BOX2DF *a)

References box2df_is_empty().

Referenced by gserialized_gist_compress_2d(), and gserialized_spgist_compress_2d().

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