public class RectFEvaluator extends Object implements TypeEvaluator<RectF>
RectF
values.Constructor and Description |
---|
RectFEvaluator() |
Modifier and Type | Method and Description |
---|---|
RectF |
evaluate(float fraction,
RectF startValue,
RectF endValue)
This function returns the result of linearly interpolating the start and
end Rect values, with
fraction representing the proportion
between the start and end values. |
public RectF evaluate(float fraction, RectF startValue, RectF endValue)
fraction
representing the proportion
between the start and end values. The calculation is a simple parametric
calculation on each of the separate components in the Rect objects
(left, top, right, and bottom).
The object returned will be the reuseRect
passed into the constructor.
evaluate
in interface TypeEvaluator<RectF>
fraction
- The fraction from the starting to the ending valuesstartValue
- The start RectendValue
- The end Rectfraction
parameter.