Ejemplo n.º 1
0
        public float GetVal(int x)
        {
            float rawVal   = Raw.GetPoint(x);
            float discount = (BaseRight - BaseLeft) * x / Raw.Count + BaseLeft;

            return((rawVal > discount) ? (rawVal - discount) : 0);
        }
Ejemplo n.º 2
0
 public void SetFraction(int index, int x)
 {
     fractions[index] = new FractionPositionF
     {
         x = x,
         y = Raw.GetPoint(x)
     };
 }