Cosmos Journeyer API Documentation - v1.10.1
    Preparing search index...

    Function computeMeanTemperature

    • Computes the mean temperature of a planet given the properties of its star and itself

      Parameters

      • starTemperature: number

        The temperature of the star in Kelvin

      • starRadius: number

        The radius of the star in meters

      • starDistance: number

        The distance between the planet and the star in meters

      • planetAlbedo: number

        The albedo of the planet (0 = black, 1 = white)

      • planetGreenHouseEffect: number

        The greenhouse effect of the planet (0 = none, 1 = total)

      Returns number

      The mean temperature of the planet in Kelvin