getValuesByTouchPoint1 method

MPPointD getValuesByTouchPoint1(
  1. double x,
  2. double y,
  3. AxisDependency axis
)

Returns a recyclable MPPointD instance Returns the x and y values in the chart at the given touch point (encapsulated in a MPPointD). This method transforms pixel coordinates to coordinates / values in the chart. This is the opposite method to getPixelForValues(...).

@param x @param y @return

Implementation

MPPointD getValuesByTouchPoint1(double x, double y, AxisDependency axis) {
  MPPointD result = MPPointD.getInstance1(0, 0);
  getValuesByTouchPoint2(x, y, axis, result);
  return result;
}