/** * Calculates diagonal of whole universe and basing on that returns needed fuel max capacity * * @return minimum fuel needed to travel whole map */ public double getMinFuel() { return Math.sqrt( Math.pow(SimulationConfig.getWindowWidth(), 2) + Math.pow(SimulationConfig.getWindowHeight(), 2)); }