PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ compare_double()

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

Definition at line 1085 of file lwlinearreferencing.c.

1086 {
1087  double a = *((double *)pa);
1088  double b = *((double *)pb);
1089  if (a < b)
1090  return -1;
1091  else if (a > b)
1092  return 1;
1093  else
1094  return 0;
1095 }

Referenced by lwgeom_cpa_within(), and lwgeom_tcpa().

Here is the caller graph for this function: