Android Reference
TypeEvaluator
android.animation
Interface TypeEvaluator<T>
-
-
Method Summary
Methods
Modifier and Type |
Method and Description |
T |
evaluate(float fraction,
T startValue,
T endValue)
This function returns the result of linearly interpolating the start and end values, with
fraction representing the proportion between the start and end values.
|
-
-
Method Detail
-
evaluate
T evaluate(float fraction,
T startValue,
T endValue)
This function returns the result of linearly interpolating the start and end values, with
fraction
representing the proportion between the start and end values. The
calculation is a simple parametric calculation: result = x0 + t * (v1 - v0)
,
where x0
is startValue
, x1
is endValue
,
and t
is fraction
.
- Parameters:
fraction
- The fraction from the starting to the ending valuesstartValue
- The start value.endValue
- The end value.
- Returns:
- A linear interpolation between the start and end values, given the
fraction
parameter.
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2496 / . Delta: 0.02270 с