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 ; }
Get the input value relative to tile .