Interface Blendable<B>

    • Method Detail

      • blendArithmeticallyWith

        B blendArithmeticallyWith​(B other,
                                  double blendingValue)
                           throws MathIllegalArgumentException
        Blend arithmetically this instance with another one.
        Parameters:
        other - other instance to blend arithmetically with
        blendingValue - value from smoothstep function B(x). It is expected to be between [0:1] and will throw an exception otherwise.
        Returns:
        this * (1 - B(x)) + other * B(x)
        Throws:
        MathIllegalArgumentException - if blending value is not within [0:1]