mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2024-06-02 11:21:45 +00:00
21463c50fe
Signed-off-by: Paul Reilly <pawereus@gmail.com>
22 lines
677 B
Java
22 lines
677 B
Java
package fns.patchwork.api;
|
|
|
|
/**
|
|
* Interpolates a range of values and returns the results in a {@link Double} array.
|
|
* <br>
|
|
* This is a functional interface, to allow for lambda expressions, but also for anonymous custom interpolation
|
|
* implementations.
|
|
*/
|
|
@FunctionalInterface
|
|
public interface Interpolator
|
|
{
|
|
/**
|
|
* Interpolates a range of values and returns the results in a {@link Double} array.
|
|
*
|
|
* @param from The starting value.
|
|
* @param to The ending value.
|
|
* @param max The number of values to interpolate.
|
|
* @return The interpolated values.
|
|
*/
|
|
double[] interpolate(final double from, final double to, final int max);
|
|
}
|