PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwtriangle_is_repeated_points()

static char lwtriangle_is_repeated_points ( LWTRIANGLE triangle)
static

Definition at line 134 of file lwtriangle.c.

135 {
136  char ret;
137  POINTARRAY *pa;
138 
139  pa = ptarray_remove_repeated_points(triangle->points, 0.0);
140  ret = ptarray_same(pa, triangle->points);
141  ptarray_free(pa);
142 
143  return ret;
144 }
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:328
char ptarray_same(const POINTARRAY *pa1, const POINTARRAY *pa2)
Definition: ptarray.c:478
POINTARRAY * ptarray_remove_repeated_points(const POINTARRAY *in, double tolerance)
Definition: ptarray.c:1446
POINTARRAY * points
Definition: liblwgeom.h:436

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

Referenced by lwtriangle_from_lwline().

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