toxi.math
Interface InterpolateStrategy
- All Known Implementing Classes:
- CircularInterpolation, CosineInterpolation, LinearInterpolation, SigmoidInterpolation, ZoomLensInterpolation
public interface InterpolateStrategy
Defines a generic function to interpolate 2 float values.
- Author:
- toxi
Method Summary |
float |
interpolate(float a,
float b,
float f)
Implements an interpolation equation. |
interpolate
float interpolate(float a,
float b,
float f)
- Implements an interpolation equation.
- Parameters:
a
- current valueb
- target valuef
- normalized interpolation factor (0.0 .. 1.0)
- Returns:
- interpolated value