PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ lwtriangle_force_clockwise()

void lwtriangle_force_clockwise ( LWTRIANGLE triangle)

Definition at line 106 of file lwtriangle.c.

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

Referenced by lwgeom_force_clockwise().

107 {
108  if ( ptarray_isccw(triangle->points) )
109  ptarray_reverse_in_place(triangle->points);
110 }
POINTARRAY * points
Definition: liblwgeom.h:435
int ptarray_isccw(const POINTARRAY *pa)
Definition: ptarray.c:1021
void ptarray_reverse_in_place(POINTARRAY *pa)
Definition: ptarray.c:341
Here is the call graph for this function:
Here is the caller graph for this function: