Lines Matching defs:to
38 inline int blend(int from, int to, double progress)
40 return lround(from + (to - from) * progress);
45 inline T blend(T from, T to, double progress)
48 return clampTo<T>(round(to > from ? from + (to - from) * progress : from - (from - to) * progress));
51 inline double blend(double from, double to, double progress)
53 return from + (to - from) * progress;
56 inline float blend(float from, float to, double progress)
58 return static_cast<float>(from + (to - from) * progress);
61 inline LayoutUnit blend(LayoutUnit from, LayoutUnit to, double progress)
63 return from + (to - from) * progress;
66 inline IntPoint blend(const IntPoint& from, const IntPoint& to, double progress)
68 return IntPoint(blend(from.x(), to.x(), progress), blend(from.y(), to.y(), progress));
71 inline FloatPoint blend(const FloatPoint& from, const FloatPoint& to, double progress)
73 return FloatPoint(blend(from.x(), to.x(), progress), blend(from.y(), to.y(), progress));