Пример #1
0
        double CharToRatio(Char c)
        {
            int pos = STR_MAPPING.IndexOf(c);

            if (pos != -1)
            {
                return((pos - DELTA) / (2 * 100.0));
            }
            else
            {
                throw new ArgumentException();
            }
        }
Пример #2
0
        double CharToRatio(Char c)
        {
            int pos = STR_MAPPING.IndexOf(c);

            if (pos != -1)
            {
                return(((pos - delta_) / 100.0) * StepChar_);
            }
            else
            {
                throw new ArgumentException();
            }
        }