PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ lwtriangle_is_repeated_points()

static char lwtriangle_is_repeated_points ( LWTRIANGLE triangle)
static

Definition at line 134 of file lwtriangle.c.

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

Referenced by lwtriangle_from_lwline().

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 }
POINTARRAY * ptarray_remove_repeated_points(const POINTARRAY *in, double tolerance)
Definition: ptarray.c:1439
POINTARRAY * points
Definition: liblwgeom.h:435
char ptarray_same(const POINTARRAY *pa1, const POINTARRAY *pa2)
Definition: ptarray.c:478
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:328
Here is the call graph for this function:
Here is the caller graph for this function: