Documentation ¶
Index ¶
- func BearingTo(latA, lonA, latB, lonB float64) float64
- func DegsToSemi(degs float64) int32
- func DestinationPoint(lat, lon, meters, bearingDegrees float64) (destLat, destLon float64)
- func DistanceFromHaversine(haversine float64) float64
- func DistanceTo(latA, lonA, latB, lonB float64) (meters float64)
- func DistanceToHaversine(meters float64) float64
- func Haversine(latA, lonA, latB, lonB float64) float64
- func NormalizeDistance(meters float64) float64
- func RectFromCenter(lat, lon, meters float64) (minLat, minLon, maxLat, maxLon float64)
- func SemiToDegs(semi int32) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DegsToSemi ¶ added in v1.3.0
func DestinationPoint ¶
DestinationPoint return the destination from a point based on a distance and bearing.
func DistanceFromHaversine ¶
func DistanceTo ¶
DistanceTo return the distance in meters between two point.
func DistanceToHaversine ¶
func NormalizeDistance ¶
func RectFromCenter ¶
RectFromCenter calculates the bounding box surrounding a circle.
func SemiToDegs ¶ added in v1.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.