Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Antarctic = Climate{ hemisphere.Antarctic[2]: { season.Winter: -2, season.Spring: 6, season.Summer: 13, season.Autumn: 5}, hemisphere.Antarctic[1]: { season.Winter: -10, season.Spring: -3, season.Summer: 1, season.Autumn: -2}, hemisphere.Antarctic[0]: { season.Winter: -20, season.Spring: -13, season.Summer: -10, season.Autumn: -7}} )
View Source
var ( Arctic = Climate{ hemisphere.Arctic[0]: { season.Winter: -15, season.Spring: -10, season.Summer: -5, season.Autumn: -10}, hemisphere.Arctic[1]: { season.Winter: -9, season.Spring: -2, season.Summer: 1, season.Autumn: -1}, hemisphere.Arctic[2]: { season.Winter: -2, season.Spring: 9, season.Summer: 15, season.Autumn: 6}} )
View Source
var ( Cancer = Climate{ hemisphere.Cancer[0]: { season.Winter: 8, season.Spring: 13, season.Summer: 19, season.Autumn: 11}, hemisphere.Cancer[1]: { season.Winter: 12, season.Spring: 18, season.Summer: 25, season.Autumn: 14}, hemisphere.Cancer[2]: { season.Winter: 15, season.Spring: 24, season.Summer: 28, season.Autumn: 21}} )
View Source
var ( Capricorn = Climate{ hemisphere.Capricorn[2]: { season.Winter: 15, season.Spring: 24, season.Summer: 28, season.Autumn: 21}, hemisphere.Capricorn[1]: { season.Winter: 12, season.Spring: 18, season.Summer: 25, season.Autumn: 14}, hemisphere.Capricorn[0]: { season.Winter: 7, season.Spring: 12, season.Summer: 16, season.Autumn: 12}} )
View Source
var ( Equator = Climate{ hemisphere.Equator[0]: { season.Winter: 25, season.Spring: 28, season.Summer: 31, season.Autumn: 26}, hemisphere.Equator[1]: { season.Winter: 29, season.Spring: 32, season.Summer: 35, season.Autumn: 29}, hemisphere.Equator[2]: { season.Winter: 23, season.Spring: 26, season.Summer: 29, season.Autumn: 25}, } )
View Source
var ( Zones = Zone{ hemisphere.Arctic.Key(): Arctic, hemisphere.Cancer.Key(): Cancer, hemisphere.Equator.Key(): Equator, hemisphere.Capricorn.Key(): Capricorn, hemisphere.Antarctic.Key(): Antarctic} )
Functions ¶
func NewClimate ¶
func NewClimate(l hemisphere.Latitude)
Types ¶
type Climate ¶
type Climate map[hemisphere.Coordinate]Seasons
func (Climate) Fetch ¶
func (climate Climate) Fetch(coordinate hemisphere.Coordinate) Seasons
func (Climate) Get ¶
func (climate Climate) Get(coordinate hemisphere.Coordinate) (Seasons, bool)
Click to show internal directories.
Click to hide internal directories.