private int CalculateYOffset(double intervalPos) { return((int)ScaleCurveToValue(YOffsetCurve.GetValue(intervalPos), 100, -100)); }
private int CalculateYOffset(double intervalPos, int maxht) { return((int)ScaleCurveToValue(YOffsetCurve.GetValue(intervalPos), BufferHt + maxht / 2, -BufferHt - maxht / 2)); }
private int CalculateYOffset(double intervalPos) { return((int)ScaleCurveToValue(YOffsetCurve.GetValue(intervalPos), -_maxBuffer * 1.1, _maxBuffer * 1.1)); }
private int CalculateYOffset(double intervalPos) { return(OffsetPercentage ? (int)Math.Round(ScaleCurveToValue(YOffsetCurve.GetValue(intervalPos), -BufferHt, BufferHt)) : (int)Math.Round(ScaleCurveToValue(YOffsetCurve.GetValue(intervalPos), 100, -100))); }
private int CalculateYOffset(double intervalPos) { return((int)ScaleCurveToValue(YOffsetCurve.GetValue(intervalPos), (int)(BufferHt / 2 + _fp.Height / 2), -(int)(BufferHt / 2 + _fp.Height / 2))); }