PostGIS  2.1.10dev-r@@SVN_REVISION@@
void lwtriangle_force_clockwise ( LWTRIANGLE triangle)

Definition at line 93 of file lwtriangle.c.

References LWTRIANGLE::points, ptarray_isccw(), and ptarray_reverse().

Referenced by lwgeom_force_clockwise().

94 {
95  if ( ptarray_isccw(triangle->points) )
96  ptarray_reverse(triangle->points);
97 }
Definition: liblwgeom.h:389
int ptarray_isccw(const POINTARRAY *pa)
Definition: ptarray.c:990
void ptarray_reverse(POINTARRAY *pa)
Definition: ptarray.c:328

Here is the call graph for this function:

Here is the caller graph for this function: