PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ ptarray_isccw()

int ptarray_isccw ( const POINTARRAY pa)

Definition at line 1026 of file ptarray.c.

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

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

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