示例#1
0
 private Point AxisTransfrom(PointPair trueValue)
 {
     double tempX = ((this.ClientRectangle.Width - 2 * this.origin.X) / this.XAxisMax) * trueValue.index + origin.X;
     double val = (trueValue.value-average)*1e6/average;
     double tempY = this.ClientRectangle.Height - (((this.ClientRectangle.Height - 2 * this.origin.Y) / (this.YAxisMax - this.YAxisMin))*val) - origin.Y;
     return new Point((int)tempX, (int)tempY - yOffset);
     
 }
示例#2
0
 public int CompareTo(PointPair r)
 {
     return this.value.CompareTo(r.value);
 }
示例#3
0
 public int CompareTo(PointPair r)
 {
     return(this.value.CompareTo(r.value));
 }