PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ compare_double()

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

Definition at line 1012 of file lwlinearreferencing.c.

1013 {
1014  double a = *((double *)pa);
1015  double b = *((double *)pb);
1016  if ( a < b )
1017  return -1;
1018  else if ( a > b )
1019  return 1;
1020  else
1021  return 0;
1022 }

Referenced by lwgeom_cpa_within(), and lwgeom_tcpa().

Here is the caller graph for this function: