Esempio n. 1
0
 private int CalculateYOffset(double intervalPos)
 {
     return((int)ScaleCurveToValue(YOffsetCurve.GetValue(intervalPos), 100, -100));
 }
Esempio n. 2
0
 private int CalculateYOffset(double intervalPos, int maxht)
 {
     return((int)ScaleCurveToValue(YOffsetCurve.GetValue(intervalPos), BufferHt + maxht / 2, -BufferHt - maxht / 2));
 }
Esempio n. 3
0
 private int CalculateYOffset(double intervalPos)
 {
     return((int)ScaleCurveToValue(YOffsetCurve.GetValue(intervalPos), -_maxBuffer * 1.1, _maxBuffer * 1.1));
 }
Esempio n. 4
0
 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)));
 }
Esempio n. 5
0
 private int CalculateYOffset(double intervalPos)
 {
     return((int)ScaleCurveToValue(YOffsetCurve.GetValue(intervalPos), (int)(BufferHt / 2 + _fp.Height / 2), -(int)(BufferHt / 2 + _fp.Height / 2)));
 }