Lines Matching refs:dx
239 double dx = x - px;
241 a += sqrt(dx * dx + dy * dy);
416 double dx = nx - bx; // vector from previous to current
426 double dot = dx * px + dy * py; // dot product
439 double l2 = dl * dl; // aka dx * dx + dy * dy, square of length
444 vcx = bx + p * dx; // compute closest point
529 double dx = data[index] - bx;
535 double rx = (px * dx + py * dy) / l;
536 double ry = (px * -dy + py * dx) / l;
625 double dx = data[seg] - data[seg-3];
629 double ux = dx/dl; // could cache these, but is it worth it?
665 double m; // slope dy/dx
675 double dx = lx - sx;
676 if (dx == 0) {
680 m = dy / dx;