Home | History | Annotate | Download | only in animation

Lines Matching refs:fraction

65     public Object getValue(float fraction) {
67 if (fraction < 0) {
68 return interpolateInRange(fraction, 0, 1);
69 } else if (fraction > 1) {
70 return interpolateInRange(fraction, numPoints - 2, numPoints - 1);
71 } else if (fraction == 0) {
73 } else if (fraction == 1) {
84 if (fraction < midFraction) {
86 } else if (fraction > midFraction) {
93 // now high is below the fraction and low is above the fraction
94 return interpolateInRange(fraction, high, low);
98 private PointF interpolateInRange(float fraction, int startIndex, int endIndex) {
105 float intervalFraction = (fraction - startFraction)/(endFraction - startFraction);
149 private static float interpolate(float fraction, float startValue, float endValue) {
151 return startValue + (diff * fraction);
161 public float getFloatValue(float fraction) {
162 PointF pointF = (PointF) PathKeyframes.this.getValue(fraction);
175 public float getFloatValue(float fraction) {
176 PointF pointF = (PointF) PathKeyframes.this.getValue(fraction);
189 public int getIntValue(float fraction) {
190 PointF pointF = (PointF) PathKeyframes.this.getValue(fraction);
203 public int getIntValue(float fraction) {
204 PointF pointF = (PointF) PathKeyframes.this.getValue(fraction);
241 public Object getValue(float fraction) {
242 return getIntValue(fraction);
254 public Object getValue(float fraction) {
255 return getFloatValue(fraction);