PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ box2df_validate()

void box2df_validate ( BOX2DF *  b)
inline

Definition at line 212 of file gserialized_gist_2d.c.

213 {
214  float tmp;
215 
216  if ( box2df_is_empty(b) )
217  return;
218 
219  if ( b->xmax < b->xmin )
220  {
221  tmp = b->xmin;
222  b->xmin = b->xmax;
223  b->xmax = tmp;
224  }
225  if ( b->ymax < b->ymin )
226  {
227  tmp = b->ymin;
228  b->ymin = b->ymax;
229  b->ymax = tmp;
230  }
231  return;
232 }
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: