Lines Matching defs:from
34 inline int blend(int from, int to, double progress)
36 return static_cast<int>(lround(static_cast<double>(from) + static_cast<double>(to - from) * progress));
39 inline unsigned blend(unsigned from, unsigned to, double progress)
41 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));
44 inline double blend(double from, double to, double progress)
46 return from + (to - from) * progress;
49 inline float blend(float from, float to, double progress)
51 return static_cast<float>(from + (to - from) * progress);
54 inline LayoutUnit blend(LayoutUnit from, LayoutUnit to, double progress)
56 return from + (to - from) * progress;
59 inline IntPoint blend(const IntPoint& from, const IntPoint& to, double progress)
61 return IntPoint(blend(from.x(), to.x(), progress),
62 blend(from.y(), to.y(), progress));