public float GetVal(int x) { float rawVal = Raw.GetPoint(x); float discount = (BaseRight - BaseLeft) * x / Raw.Count + BaseLeft; return((rawVal > discount) ? (rawVal - discount) : 0); }
public void SetFraction(int index, int x) { fractions[index] = new FractionPositionF { x = x, y = Raw.GetPoint(x) }; }