PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ compare_double()

static int compare_double ( const void *  pa,
const void *  pb 
)
static

Definition at line 993 of file lwlinearreferencing.c.

Referenced by lwgeom_cpa_within(), and lwgeom_tcpa().

994 {
995  double a = *((double *)pa);
996  double b = *((double *)pb);
997  if ( a < b )
998  return -1;
999  else if ( a > b )
1000  return 1;
1001  else
1002  return 0;
1003 }
Here is the caller graph for this function: