PostGIS  2.1.10dev-r@@SVN_REVISION@@
int signum ( double  n)

Returns -1 if n < 0.0 and 1 if n > 0.0.

Definition at line 21 of file lwalgorithm.c.

Referenced by lw_segment_side().

22 {
23  if( n < 0 ) return -1;
24  if( n > 0 ) return 1;
25  return 0;
26 }

Here is the caller graph for this function: