Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cartesian ¶
type Cartesian struct {
// contains filtered or unexported fields
}
* Data structure representing a 2-dimensional vector in Cartesian coordinates. * * Vectors are immutable.
func CreateCartesian ¶
* Creates an immutable data structure representing a two-dimensional vector in * Cartesian coordinates.
type Geographic ¶
type Geographic struct {
// contains filtered or unexported fields
}
* Data structure representing geographic coordinates as longitude and latitude. * * By convention, values are stored in radians. * * Geographic locations are immutable.
func CreateGeographic ¶
func CreateGeographic(longitude float64, latitude float64) Geographic
* Creates an immutable data structure storing geographic coordinates as longitude * and latitude.
func (*Geographic) Latitude ¶
func (this *Geographic) Latitude() float64
* Returns the latitude value of this geographic location. * By convention, this value is in radians.
func (*Geographic) Longitude ¶
func (this *Geographic) Longitude() float64
* Returns the longitude value of this geographic location. * By convention, this value is in radians.