*/
extern LWGEOM* lwgeom_remove_repeated_points(const LWGEOM *in, double tolerance);
-extern char lwtriangle_is_repeated_points(LWTRIANGLE *triangle);
-
/**
* Swap ordinate values in every vertex of the geometry.
*
return r;
}
+static char
+lwtriangle_is_repeated_points(LWTRIANGLE *triangle)
+{
+ char ret;
+ POINTARRAY *pa;
+
+ pa = ptarray_remove_repeated_points(triangle->points, 0.0);
+ ret = ptarray_same(pa, triangle->points);
+ ptarray_free(pa);
+
+ return ret;
+}
+
/*
* Construct a triangle from a LWLINE being
* the shell
return ret;
}
-char
-lwtriangle_is_repeated_points(LWTRIANGLE *triangle)
-{
- char ret;
- POINTARRAY *pa;
-
- pa = ptarray_remove_repeated_points(triangle->points, 0.0);
- ret = ptarray_same(pa, triangle->points);
- ptarray_free(pa);
-
- return ret;
-}
-
int lwtriangle_is_empty(const LWTRIANGLE *triangle)
{
if ( !triangle->points || triangle->points->npoints < 1 )