Definition at line 1552 of file ptarray.c.
References distance2d_sqr_pt_seg(), getPoint2d_cp(), LWDEBUG, LWDEBUGF, POINT2D::x, and POINT2D::y.
Referenced by ptarray_simplify().
1558 LWDEBUG(4,
"function called");
1569 LWDEBUGF(4,
"P%d(%f,%f) to P%d(%f,%f)",
1570 p1, pa->
x, pa->
y, p2, pb->
x, pb->
y);
1572 for (k=p1+1; k<p2; k++)
1586 LWDEBUGF(4,
"P%d is farthest (%g)", k, d);
1594 LWDEBUG(3,
"segment too short, no split/no dist");
#define LWDEBUG(level, msg)
const POINT2D * getPoint2d_cp(const POINTARRAY *pa, int n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from...
double distance2d_sqr_pt_seg(const POINT2D *p, const POINT2D *A, const POINT2D *B)
#define LWDEBUGF(level, msg,...)