PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwtriangle_is_repeated_points()

char lwtriangle_is_repeated_points ( LWTRIANGLE triangle)

Definition at line 169 of file lwtriangle.c.

References LWTRIANGLE::points, ptarray_free(), ptarray_remove_repeated_points(), and ptarray_same().

Referenced by lwtriangle_from_lwline().

170 {
171  char ret;
172  POINTARRAY *pa;
173 
174  pa = ptarray_remove_repeated_points(triangle->points, 0.0);
175  ret = ptarray_same(pa, triangle->points);
176  ptarray_free(pa);
177 
178  return ret;
179 }
POINTARRAY * ptarray_remove_repeated_points(const POINTARRAY *in, double tolerance)
Definition: ptarray.c:1546
POINTARRAY * points
Definition: liblwgeom.h:433
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:330
char ptarray_same(const POINTARRAY *pa1, const POINTARRAY *pa2)
Definition: ptarray.c:479
Here is the call graph for this function:
Here is the caller graph for this function: