PostGIS  2.1.10dev-r@@SVN_REVISION@@
int ptarray_isccw ( const POINTARRAY pa)

Definition at line 990 of file ptarray.c.

References area(), LW_FALSE, LW_TRUE, and ptarray_signed_area().

Referenced by lwpoly_force_clockwise(), lwtriangle_force_clockwise(), and test_ptarray_isccw().

991 {
992  double area = 0;
993  area = ptarray_signed_area(pa);
994  if ( area > 0 ) return LW_FALSE;
995  else return LW_TRUE;
996 }
#define LW_FALSE
Definition: liblwgeom.h:52
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:51
double ptarray_signed_area(const POINTARRAY *pa)
Returns the area in cartesian units.
Definition: ptarray.c:959

Here is the call graph for this function:

Here is the caller graph for this function: