Search all the arcs of pointarray to see which one is closest to p1 Returns minimum distance between point and arc pointarray.
Definition at line 1170 of file measures.c.
1178 LWDEBUG(2,
"lw_dist2d_pt_ptarrayarc is called");
1182 lwerror(
"lw_dist2d_pt_ptarrayarc called with non-arc input");
1188 lwerror(
"lw_dist2d_pt_ptarrayarc does not currently support DIST_MAX mode");
1197 for (t = 1; t < pa->
npoints; t += 2)
#define LW_TRUE
Return types for functions with status returns.
#define LWDEBUG(level, msg)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static const POINT2D * getPoint2d_cp(const POINTARRAY *pa, uint32_t n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from.
int lw_dist2d_pt_arc(const POINT2D *P, const POINT2D *A1, const POINT2D *A2, const POINT2D *A3, DISTPTS *dl)
int lw_dist2d_pt_pt(const POINT2D *thep1, const POINT2D *thep2, DISTPTS *dl)
Compares incoming points and stores the points closest to each other or most far away from each other...
References DIST_MAX, DIST_MIN, DISTPTS::distance, getPoint2d_cp(), lw_dist2d_pt_arc(), lw_dist2d_pt_pt(), LW_FALSE, LW_TRUE, LWDEBUG, lwerror(), DISTPTS::mode, POINTARRAY::npoints, DISTPTS::tolerance, and DISTPTS::twisted.
Referenced by lw_dist2d_point_circstring(), and test_lw_dist2d_pt_ptarrayarc().