Documentation ¶
Index ¶
Constants ¶
View Source
const ( NorthLabel string = "northern hemisphere" SouthLabel string = "southern hemisphere" )
View Source
const ( EastLabel string = "eastern hemisphere" WestLabel string = "western hemisphere" )
View Source
const ( EquatorLabel string = "equator" PrimeLabel string = "prime meridian" )
View Source
const ( AntarcticLabel string = "antarctic circle" ArcticLabel string = "arctic circle" )
View Source
const ( CancerLabel string = "tropic of cancer" CapricornLabel string = "tropic of capricorn" )
View Source
const (
E string = EastLabel
)
View Source
const (
N string = NorthLabel
)
View Source
const (
S string = SouthLabel
)
View Source
const (
W string = WestLabel
)
Variables ¶
View Source
var (
Antarctic = NewArea(south, ((south + antarctic) / 2), antarctic)
)
View Source
var (
Arctic = NewArea(north, ((north + arctic) / 2), arctic)
)
View Source
var (
Cancer = NewArea(arctic-divison, ((cancer + arctic - divison) / 2), cancer)
)
View Source
var (
Capricorn = NewArea(antarctic+divison, ((capricorn + antarctic + divison) / 2), capricorn)
)
View Source
var ( Center = &Zone{ EquatorLabel: Equator, PrimeLabel: Prime} )
View Source
var (
East = NewArea(east, (east / 2), prime)
)
View Source
var ( Eastern = &Zone{ EastLabel: East} )
View Source
var (
Equator = NewArea(cancer-divison, equator, capricorn+divison)
)
View Source
var (
North = NewArea(north, (north / 2), equator)
)
View Source
var ( Northern = &Zone{ ArcticLabel: Arctic, CancerLabel: Cancer} )
View Source
var (
Prime = NewArea(east/2, prime, west/2)
)
View Source
var (
South = NewArea(south, (south / 2), equator)
)
View Source
var ( Southern = &Zone{ AntarcticLabel: Antarctic, CapricornLabel: Capricorn} )
View Source
var (
West = NewArea(west, (west / 2), prime)
)
View Source
var ( Western = &Zone{ WestLabel: West} )
Functions ¶
This section is empty.
Types ¶
type Area ¶
type Area [3]Coordinate
type Coordinate ¶
type Coordinate float32
func NewCoordinate ¶
func NewCoordinate(coordinate float32) Coordinate
func NewCoordinateFromLatitude ¶
func NewCoordinateFromLatitude(latitude *latitude.Latitude) Coordinate
func NewCoordinateFromLongtitude ¶
func NewCoordinateFromLongtitude(longtitude *longtitude.Longtitude) Coordinate
func (Coordinate) Absolute ¶
func (coordinate Coordinate) Absolute() float32
func (Coordinate) Less ¶
func (coordinate Coordinate) Less(c Coordinate) bool
func (Coordinate) More ¶
func (coordinate Coordinate) More(c Coordinate) bool
func (Coordinate) Value ¶
func (coordinate Coordinate) Value() float32
type Hemisphere ¶
type Hemisphere struct { Latitude *Latitude Longtitude *Longtitude }
func NewHemisphere ¶
func NewHemisphere(latitude *latitude.Latitude, longtitude *longtitude.Longtitude) *Hemisphere
type Latitude ¶
func NewLatitude ¶
type Longtitude ¶
func NewLongtitude ¶
func NewLongtitude(longtitude *longtitude.Longtitude) *Longtitude
Click to show internal directories.
Click to hide internal directories.