Пример #1
0
 /// <summary>
 /// Inverse transform the specified screen point.
 /// </summary>
 /// <param name="x">
 /// The x coordinate.
 /// </param>
 /// <param name="y">
 /// The y coordinate.
 /// </param>
 /// <param name="yaxis">
 /// The y-axis.
 /// </param>
 /// <returns>
 /// The data point.
 /// </returns>
 public virtual DataPoint InverseTransform(double x, double y, Axis yaxis)
 {
     return new DataPoint(this.InverseTransform(x), yaxis != null ? yaxis.InverseTransform(y) : 0);
 }
Пример #2
0
 /// <summary>
 /// Transforms the specified screen position to a data point.
 /// </summary>
 /// <param name="position">The position.</param>
 /// <returns>A data point</returns>
 public DataPoint InverseTransform(ScreenPoint position)
 {
     return(Axis.InverseTransform(position, this.XAxis, this.YAxis));
 }
Пример #3
0
 /// <summary>
 /// Transform the specified screen point to data coordinates.
 /// </summary>
 /// <param name="p">The point.</param>
 /// <param name="xaxis">The x axis.</param>
 /// <param name="yaxis">The y axis.</param>
 /// <returns>The data point.</returns>
 public static DataPoint InverseTransform(ScreenPoint p, Axis xaxis, Axis yaxis)
 {
     return xaxis.InverseTransform(p.x, p.y, yaxis);
 }