PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ SIGNUM

#define SIGNUM (   n)    (((n) > 0) - ((n) < 0))

Macro that returns: -1 if n < 0, 1 if n > 0, 0 if n == 0.

Definition at line 130 of file liblwgeom_internal.h.

Referenced by crosses_dateline(), edge_contains_coplanar_point(), lw_segment_side(), ptarray_area_spheroid(), sphere_direction(), spheroid_striparea(), test_signum_macro(), and z_to_latitude().