Lines Matching refs:to
35 inline int blend(int from, int to, double progress)
37 return static_cast<int>(lround(static_cast<double>(from) + static_cast<double>(to - from) * progress));
40 inline unsigned blend(unsigned from, unsigned to, double progress)
42 return static_cast<unsigned>(lround(to > from ? static_cast<double>(from) + static_cast<double>(to - from) * progress : static_cast<double>(from) - static_cast<double>(from - to) * progress));
45 inline double blend(double from, double to, double progress)
47 return from + (to - from) * progress;
50 inline float blend(float from, float to, double progress)
52 return static_cast<float>(from + (to - from) * progress);
55 inline LayoutUnit blend(LayoutUnit from, LayoutUnit to, double progress)
57 return from + (to - from) * progress;
60 inline IntPoint blend(const IntPoint& from, const IntPoint& to, double progress)
62 return IntPoint(blend(from.x(), to.x(), progress),
63 blend(from.y(), to.y(), progress));