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.

@FunctionalInterface public interface Interpolator
Interpolates a range of values and returns the results in a Double array.
This is a functional interface, to allow for lambda expressions, but also for anonymous custom interpolation implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    double[]
    interpolate(double from, double to, int max)
    Interpolates a range of values and returns the results in a Double array.
  • Method Details

    • interpolate

      double[] interpolate(double from, double to, int max)
      Interpolates a range of values and returns the results in a Double array.
      Parameters:
      from - The starting value.
      to - The ending value.
      max - The number of values to interpolate.
      Returns:
      The interpolated values.