PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ ptarray_isccw()

int ptarray_isccw ( const POINTARRAY pa)

Definition at line 1033 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().

1034 {
1035  double area = 0;
1036  area = ptarray_signed_area(pa);
1037  if ( area > 0 ) return LW_FALSE;
1038  else return LW_TRUE;
1039 }
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:1002
Here is the call graph for this function:
Here is the caller graph for this function: