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 ; }
Check if the pathfindable is horizontally arrived .