code: private boolean checkArrivedX(double extrp, double sx, double dx)
      {
          final double x = transformable.getX();
          if (sx < 0 && x <= dx || sx >= 0 && x >= dx)
          {
              transformable.moveLocation(extrp, dx - x, 0);
              return true;
          }
          return false;
      }
docs: Check if the pathfindable is horizontally arrived.
  
  @param extrp The extrapolation value.
  @param sx The horizontal speed.
  @param dx The horizontal tile destination.
  @return <code>true</code> if arrived, <code>false</code> else.