public boolean erTegen(double nx, double ny){
         if (nx <= getX()+getWidth() && nx >= getX() 
                    && ny <= getY()+getHeight() && ny >= getY()){
                return true;
            }
         return false;
    }