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); }
public int CompareTo(PointPair r) { return this.value.CompareTo(r.value); }
public int CompareTo(PointPair r) { return(this.value.CompareTo(r.value)); }