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