Lines Matching refs:rOld2
268 inline B2DTuple interpolate(const B2DTuple& rOld1, const B2DTuple& rOld2, double t) in interpolate() argument
270 if(rOld1 == rOld2) in interpolate()
280 return rOld2; in interpolate()
285 ((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX(), in interpolate()
286 ((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY()); in interpolate()
290 inline B2DTuple average(const B2DTuple& rOld1, const B2DTuple& rOld2) in average() argument
293 rOld1.getX() == rOld2.getX() ? rOld1.getX() : (rOld1.getX() + rOld2.getX()) * 0.5, in average()
294 rOld1.getY() == rOld2.getY() ? rOld1.getY() : (rOld1.getY() + rOld2.getY()) * 0.5); in average()
297 inline B2DTuple average(const B2DTuple& rOld1, const B2DTuple& rOld2, const B2DTuple& rOld3) in average() argument
300 …(rOld1.getX() == rOld2.getX() && rOld2.getX() == rOld3.getX()) ? rOld1.getX() : (rOld1.getX() + rO… in average()
301 …(rOld1.getY() == rOld2.getY() && rOld2.getY() == rOld3.getY()) ? rOld1.getY() : (rOld1.getY() + rO… in average()