Lines Matching defs:ta
50 double ta, tb; //time on a and b of crossing
52 Crossing() : dir(false), ta(0), tb(1), a(0), b(1) {}
53 Crossing(double t_a, double t_b, bool direction) : dir(direction), ta(t_a), tb(t_b), a(0), b(1) {}
54 Crossing(double t_a, double t_b, unsigned ai, unsigned bi, bool direction) : dir(direction), ta(t_a), tb(t_b), a(ai), b(bi) {}
55 bool operator==(const Crossing & other) const { return a == other.a && b == other.b && dir == other.dir && ta == other.ta && tb == other.tb; }
59 double getTime(unsigned cur) const { return a == cur ? ta : tb; }
60 double getOtherTime(unsigned cur) const { return a == cur ? tb : ta; }
106 return are_near(a.ta, b.ta) && are_near(a.tb, b.tb);
118 return (ix == a.a ? a.ta : a.tb) <
119 (ix == b.a ? b.ta : b.tb);
121 return (ix == a.a ? a.ta : a.tb) >
122 (ix == b.a ? b.ta : b.tb);