Documentation
¶
Index ¶
Constants ¶
View Source
const ( // EarthRadius in meters EarthRadius = 6371e3 // EarthCircumference in meters EarthCircumference = 2 * EarthRadius * math.Pi )
Variables ¶
This section is empty.
Functions ¶
func DegreeToRad ¶
DegreeToRad convert given arc in degree to rad
func RadToDegree ¶
RadToDegree convert given arc in rad to degree
Types ¶
type Point ¶
type Point struct {
Lat float64 // Latitude of the point in rad
Lon float64 // Longitude of the point in rad
}
Point define an Earth point
func Intermediate ¶
Intermediate calculate an intermediate point at any fraction along the great circle path between p1 and p2. Start path at p1, if fraction=0, returned Point is p1. If fraction=1, returned Point is p2.
func NewPoint ¶
NewPoint create and return an new Point from given coordinates lat and lon in radians
Click to show internal directories.
Click to hide internal directories.