PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ ptarray_isccw()

int ptarray_isccw ( const POINTARRAY pa)

Definition at line 1028 of file ptarray.c.

1029 {
1030  double area = 0;
1031  area = ptarray_signed_area(pa);
1032  if ( area > 0 ) return LW_FALSE;
1033  else return LW_TRUE;
1034 }
#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:997

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().

Here is the call graph for this function:
Here is the caller graph for this function: