Package me.totalfreedom.api
Interface Interpolator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interpolates a range of values and returns the results in a
This is a functional interface, to allow for lambda expressions, but also for anonymous custom interpolation implementations.
Double array.
This is a functional interface, to allow for lambda expressions, but also for anonymous custom interpolation implementations.
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]interpolate(double from, double to, int max) Interpolates a range of values and returns the results in aDoublearray.
-
Method Details
-
interpolate
double[] interpolate(double from, double to, int max) Interpolates a range of values and returns the results in aDoublearray.- Parameters:
from- The starting value.to- The ending value.max- The number of values to interpolate.- Returns:
- The interpolated values.
-