Exemplo n.º 1
0
        /// <inheritdoc/>
        public float GetValue(float x)
        {
            if (x < 0F)
            {
                x = -x;
            }

            if (x < 2F)
            {
                return(ImageMaths.SinC(x) * ImageMaths.SinC(x / 2F));
            }

            return(0F);
        }
Exemplo n.º 2
0
        /// <inheritdoc/>
        public float GetValue(float x)
        {
            if (x < 0F)
            {
                x = -x;
            }

            if (x < 3F)
            {
                return(ImageMaths.SinC(x) * (1F - (x * x / 9.0F)));
            }

            return(0F);
        }