Beispiel #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);
        }
Beispiel #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);
        }