NewTOAPIA.Drawing.image_filter_spline16.calc_weight C# (CSharp) Method

calc_weight() public method

public calc_weight ( double x ) : double
x double
return double
        public double calc_weight(double x)
        {
            if (x < 1.0)
            {
                return ((x - 9.0 / 5.0) * x - 1.0 / 5.0) * x + 1.0;
            }
            return ((-1.0 / 3.0 * (x - 1) + 4.0 / 5.0) * (x - 1) - 7.0 / 15.0) * (x - 1);
        }
    };
image_filter_spline16