PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ ptarray_isccw()

int ptarray_isccw ( const POINTARRAY pa)

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

1022 {
1023  double area = 0;
1024  area = ptarray_signed_area(pa);
1025  if ( area > 0 ) return LW_FALSE;
1026  else return LW_TRUE;
1027 }
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:990
Here is the call graph for this function:
Here is the caller graph for this function: