Charts/vtkPlotPoints.cxx
bool inRange(const vtkVector2f& point, const vtkVector2f& tol,
             const vtkVector2f& current)
{
  if (current.X() > point.X() - tol.X() && current.X() < point.X() + tol.X() &&
      current.Y() > point.Y() - tol.Y() && current.Y() < point.Y() + tol.Y())
    {
    return true;
    }
  else
    {
    return false;
    }
}
// See if the point is within tolerance.
See if the point is within tolerance.
See if the point is within tolerance .
bool inRange(const vtkVector2f& point, const vtkVector2f& tol,
             const vtkVector2f& current)
{
  if (current.X() > point.X() - tol.X() && current.X() < point.X() + tol.X() &&
      current.Y() > point.Y() - tol.Y() && current.Y() < point.Y() + tol.Y())
    {
    return true;
    }
  else
    {
    return false;
    }
}
bool inRange ( const vtkVector2f & point , const vtkVector2f & tol , const vtkVector2f & current ) { if ( current . X ( ) > point . X ( ) - tol . X ( ) && current . X ( ) < point . X ( ) + tol . X ( ) && current . Y ( ) > point . Y ( ) - tol . Y ( ) && current . Y ( ) < point . Y ( ) + tol . Y ( ) ) { return true ; } else { return false ; } }
See if the point is within tolerance.
See if the point is within tolerance .