Home | History | Annotate | Download | only in animation

Lines Matching refs:fraction

66     public Object getValue(float fraction) {
68 if (fraction < 0) {
69 return interpolateInRange(fraction, 0, 1);
70 } else if (fraction > 1) {
71 return interpolateInRange(fraction, numPoints - 2, numPoints - 1);
72 } else if (fraction == 0) {
74 } else if (fraction == 1) {
85 if (fraction < midFraction) {
87 } else if (fraction > midFraction) {
94 // now high is below the fraction and low is above the fraction
95 return interpolateInRange(fraction, high, low);
99 private PointF interpolateInRange(float fraction, int startIndex, int endIndex) {
106 float intervalFraction = (fraction - startFraction)/(endFraction - startFraction);
146 private static float interpolate(float fraction, float startValue, float endValue) {
148 return startValue + (diff * fraction);
158 public float getFloatValue(float fraction) {
159 PointF pointF = (PointF) PathKeyframes.this.getValue(fraction);
172 public float getFloatValue(float fraction) {
173 PointF pointF = (PointF) PathKeyframes.this.getValue(fraction);
186 public int getIntValue(float fraction) {
187 PointF pointF = (PointF) PathKeyframes.this.getValue(fraction);
200 public int getIntValue(float fraction) {
201 PointF pointF = (PointF) PathKeyframes.this.getValue(fraction);
234 public Object getValue(float fraction) {
235 return getIntValue(fraction);
247 public Object getValue(float fraction) {
248 return getFloatValue(fraction);