Home | History | Annotate | Download | only in animation

Lines Matching refs:x1

18 static double eval_bezier(double x1, double x2, double t) {
19 const double x1_times_3 = 3.0 * x1;
23 const double h2 = x2_times_3 - 6.0 * x1;
27 static double bezier_interp(double x1,
32 DCHECK_GE(1.0, x1);
33 DCHECK_LE(0.0, x1);
37 x1 = std::min(std::max(x1, 0.0), 1.0);
42 // eval_bezier(x1, x2, t) = x. There is a unique solution if x1 and x2 lie
50 const double error = eval_bezier(x1, x2, t) - x;
58 DCHECK_GT(kBezierEpsilon, std::abs(eval_bezier(x1, x2, t) - x));
75 double x1, double y1, double x2, double y2) {
76 return make_scoped_ptr(new CubicBezierTimingFunction(x1, y1, x2, y2));
79 CubicBezierTimingFunction::CubicBezierTimingFunction(double x1,
83 : x1_(x1), y1_(y1), x2_(x2), y2_(y2) {}