Пример #1
0
        private double getAirDensityPercentage(double altitude)
        {
            double atmosphereHeight = (double)VesselController.getClosestBodyAtmosphereHeight();

            if (atmosphereHeight < 0.0)
            {
                return(0.0);
            }
            double percentage = altitude / atmosphereHeight;

            return(1.0 - Math.Pow(percentage, 0.333));
        }