PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ ptarray_isccw()

int ptarray_isccw ( const POINTARRAY pa)

Definition at line 1029 of file ptarray.c.

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

Referenced by _lwt_AddFaceSplit(), lwpoly_force_clockwise(), lwpoly_is_clockwise(), lwt_ChangeEdgeGeom(), lwtriangle_force_clockwise(), lwtriangle_is_clockwise(), and test_ptarray_isccw().

1030 {
1031  double area = 0;
1032  area = ptarray_signed_area(pa);
1033  if ( area > 0 ) return LW_FALSE;
1034  else return LW_TRUE;
1035 }
Datum area(PG_FUNCTION_ARGS)
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
double ptarray_signed_area(const POINTARRAY *pa)
Returns the area in cartesian units.
Definition: ptarray.c:998
Here is the call graph for this function:
Here is the caller graph for this function: