NewTOAPIA.Drawing.image_filter_quadric.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)
        {
            double t;
            if (x < 0.5) return 0.75 - x * x;
            if (x < 1.5) { t = x - 1.5; return 0.5 * t * t; }
            return 0.0;
        }
    };
image_filter_quadric