Home | History | Annotate | Download | only in animation

Lines Matching refs:state

22 double Tween::CalculateValue(Tween::Type type, double state) {
23 DCHECK_GE(state, 0);
24 DCHECK_LE(state, 1);
28 return pow(state, 2);
31 return pow(state, 4);
34 if (state < 0.5)
35 return pow(state * 2, 2) / 2.0;
36 return 1.0 - (pow((state - 1.0) * 2, 2) / 2.0);
39 return (pow(state - 0.5, 3) + 0.125) / 0.25;
42 return state;
45 state = 0.95 * (1.0 - pow(1.0 - state, 2));
46 return state;
49 return 1.0 - pow(1.0 - state, 2);
52 return sin(state);
59 return state;