code: public double getInputValue(Axis input, double x, double y)
      {
          final double v;
          switch (input)
          {
              case X:
                  v = Math.floor(x - tile.getX());
                  break;
              case Y:
                  v = Math.floor(y - tile.getY());
                  break;
              default:
                  throw new LionEngineException(input);
          }
          return v;
      }
docs: Get the input value relative to tile.
  
  @param input The input used.
  @param x The horizontal location.
  @param y The vertical location.
  @return The input value.