earth.bear: Bearings Between Geographic Locations

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

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

Usage

1
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

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.

Value

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

Author(s)

Matthew Vavrek

References

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

See Also

earth.poly

Examples

1
earth.bear(-100, 30, 20, -40)

Example output

Loading required package: sp
Loading required package: maps
Loading required package: shapefiles
Loading required package: foreign

Attaching package: 'shapefiles'

The following objects are masked from 'package:foreign':

    read.dbf, write.dbf

[1] 118.8295

fossil documentation built on March 23, 2020, 5:06 p.m.