test each segment of l1 against each segment of l2.
Definition at line 1197 of file measures.c.
1198{
1199 uint32_t t, u;
1203
1205
1206
1207
1209 {
1210 for (t = 0; t < l1->
npoints; t++)
1211 {
1213 for (u = 0; u < l2->
npoints; u++)
1214 {
1217 }
1218 }
1219 }
1220 else
1221 {
1223 for (t = 1; t < l1->
npoints; t++)
1224 {
1227 for (u = 1; u < l2->
npoints; u++)
1228 {
1234 start2 = end2;
1235 }
1236 start = end;
1237 }
1238 }
1240}
#define LW_TRUE
Return types for functions with status returns.
#define LWDEBUGF(level, msg,...)
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_seg_seg(const POINT2D *A, const POINT2D *B, const POINT2D *C, const POINT2D *D, DISTPTS *dl)
Finds the shortest distance between two segments.
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_pt(), lw_dist2d_seg_seg(), LW_TRUE, LWDEBUGF, DISTPTS::mode, POINTARRAY::npoints, DISTPTS::tolerance, and DISTPTS::twisted.
Referenced by lw_dist2d_line_line(), lw_dist2d_line_poly(), lw_dist2d_line_tri(), lw_dist2d_poly_poly(), lw_dist2d_tri_poly(), and lw_dist2d_tri_tri().