DescriptionDo not clamp y values on internal knots of timing function bezier curves
Cubic bezier timing functions are based on two knots (x1, y1) and (x2, y2) (the
other knots are assumed to be (0, 0) and (1, 1)). We require that x1, x2 lie
within (0, 1) (so that the bezier does not 'fold back' on itself), but y1, and
y2 should have no such constraint. They currently do. This CL reimplements
bezier interpolation without this restriction. This interpolation has two steps:
1) Find the t corresponding to the desired x.
2) Interpolate y's at the t computed in step 1.
Step 1 is an iterative minimization. Here I do bisection for simplicity, but I
could take Newton steps if this turns out to be a bottleneck.
R=ajuma@chromium.org
BUG=178070
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202755
Patch Set 1 #
Total comments: 1
Patch Set 2 : . #
Messages
Total messages: 7 (0 generated)
|