Interface Combiner

All Known Subinterfaces:
Combiner
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 Combiner
Interface marking the implementing class as a function that combines to double values into 1 double value. As an example this is used to mark the minimization function in Worley Noise.
  • Field Details

    • ADD

      static final Combiner ADD
    • MULTIPLY

      static final Combiner MULTIPLY
    • MAX

      static final Combiner MAX
    • MIN

      static final Combiner MIN
    • POW

      static final Combiner POW
    • EXPONENTIAL_SMOOTH_MIN

      static final Combiner EXPONENTIAL_SMOOTH_MIN
    • POWER_SMOOTH_MIN

      static final Combiner POWER_SMOOTH_MIN
    • POLYNOMIAL_SMOOTH_MIN

      static final Combiner POLYNOMIAL_SMOOTH_MIN
  • Method Details

    • combine

      @Deprecated(since="4.1.0", forRemoval=true) default double combine(double a, double b)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use applyTo(double, double) - makes more sense with conventions.
      Combines two double values into one double value.
      Parameters:
      a - first double.
      b - second double.
      Returns:
      the resulting double.
    • applyTo

      double applyTo(double a, double b)
      Combines two double values into one double value.
      Parameters:
      a - first double.
      b - second double.
      Returns:
      the resulting double.