PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ compare_double()

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

Definition at line 1006 of file lwlinearreferencing.c.

Referenced by lwgeom_cpa_within(), and lwgeom_tcpa().

1007 {
1008  double a = *((double *)pa);
1009  double b = *((double *)pb);
1010  if ( a < b )
1011  return -1;
1012  else if ( a > b )
1013  return 1;
1014  else
1015  return 0;
1016 }
Here is the caller graph for this function: