PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwtriangle_reverse()

void lwtriangle_reverse ( LWTRIANGLE triangle)

Definition at line 119 of file lwtriangle.c.

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

Referenced by lwgeom_reverse().

120 {
121  if( lwtriangle_is_empty(triangle) ) return;
122  ptarray_reverse(triangle->points);
123 }
int lwtriangle_is_empty(const LWTRIANGLE *triangle)
Definition: lwtriangle.c:181
POINTARRAY * points
Definition: liblwgeom.h:433
void ptarray_reverse(POINTARRAY *pa)
Definition: ptarray.c:343
Here is the call graph for this function:
Here is the caller graph for this function: