protected override double ExecuteFilter(double x, double y, double z, CallableNode flow, double inputValue)
    {
        var v01 = UMath.Clamp(0, 1, UMath.InverseLerp(inMin, inMax, inputValue));
        var vC  = curve.Evaluate((float)v01);

        return(UMath.Lerp(outMin, outMax, vC));
    }
Esempio n. 2
0
    protected override double ExecuteFilter(double x, double y, double z, CallableNode flow, double inputValue)
    {
        var v01 = UMath.InverseLerp(inMin, inMax, inputValue);

        return(UMath.Lerp(outMin, outMax, v01));
    }