fossil (version 0.3.7)

earth.bear: Bearings Between Geographic Locations

Description

Calculate the bearing in degrees clockwise from True North between any two points on the globe.

Usage

earth.bear(long1, lat1, long2, lat2)

Arguments

long1

Longitude of site 1

lat1

Latitude of site 1

long2

Longitude of site 2

lat2

Latitude of site 2

Value

Returns a value in degrees from True North between two geographic points.

Details

Calculate the bearing in degrees clockwise from True North between any two points on the globe. Primarily designed to be used with other included geographic tools.

References

Haversine formula from Math Forums: Ask Dr. Math at http://mathforum.org/dr.math/

See Also

earth.poly

Examples

Run this code
# NOT RUN {
earth.bear(-100, 30, 20, -40)
# }

Run the code above in your browser using DataLab