PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwtriangle_is_repeated_points()

char lwtriangle_is_repeated_points ( LWTRIANGLE triangle)

Definition at line 150 of file lwtriangle.c.

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

Referenced by lwtriangle_from_lwline().

151 {
152  char ret;
153  POINTARRAY *pa;
154 
155  pa = ptarray_remove_repeated_points(triangle->points, 0.0);
156  ret = ptarray_same(pa, triangle->points);
157  ptarray_free(pa);
158 
159  return ret;
160 }
POINTARRAY * points
Definition: liblwgeom.h:417
POINTARRAY * ptarray_remove_repeated_points(POINTARRAY *in, double tolerance)
Definition: ptarray.c:1499
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:330
char ptarray_same(const POINTARRAY *pa1, const POINTARRAY *pa2)
Definition: ptarray.c:484
Here is the call graph for this function:
Here is the caller graph for this function: