PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lwtriangle_force_orientation()

void lwtriangle_force_orientation ( LWTRIANGLE triangle,
int  orientation 
)

Definition at line 112 of file lwtriangle.c.

113 {
114  if (!lwtriangle_has_orientation(triangle, orientation))
115  ptarray_reverse_in_place(triangle->points);
116 }
void ptarray_reverse_in_place(POINTARRAY *pa)
Definition: ptarray.c:339
int lwtriangle_has_orientation(const LWTRIANGLE *triangle, int orientation)
Definition: lwtriangle.c:106
POINTARRAY * points
Definition: liblwgeom.h:495

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

Referenced by lwgeom_force_orientation().

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