PostGIS  2.1.10dev-r@@SVN_REVISION@@
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);
156  ret = ptarray_same(pa, triangle->points);
157  ptarray_free(pa);
158 
159  return ret;
160 }
POINTARRAY * points
Definition: liblwgeom.h:389
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:315
char ptarray_same(const POINTARRAY *pa1, const POINTARRAY *pa2)
Definition: ptarray.c:443
POINTARRAY * ptarray_remove_repeated_points(POINTARRAY *in)
Definition: ptarray.c:1401

Here is the call graph for this function:

Here is the caller graph for this function: