Lines Matching defs:ay
36 static bool pointOnLine(double px,double py, double ax, double ay, double bx, double by, double& tx) {
38 double dy=by-ay;
43 ty=py-ay;
48 tx=(py-ay)/dy;
55 if(fabs(py-ay)<0.01) {
59 ty=(py-ay)/dy;
81 double ay=route->ys[i-1];
86 //printf(" px=%f, py=%f, ax=%f, ay=%f, bx=%f, by=%f\n",px,py,ax,ay,bx,by);
87 if(pointOnLine(px,py,ax,ay,bx,by,t)) {