module Geo::Bearing
Defined in:
geo_bearing.crConstant Summary
-
VERSION =
{{ (`shards version /srv/crystaldoc.info/github-geocrystal-geo_bearing-v0.1.0/src`).chomp.stringify }}
Class Method Summary
-
.bearing(from_lat : Number, from_lng : Number, to_lat : Number, to_lng : Number, final = false) : Float64
The formula used for calculating the initial bearing between two points on the Earth's surfaceis is derived from the broader concepts of great-circle distance and navigation on a spherical Earth model.
- .degrees_to_radians(degrees : Number) : Float64
- .radians_to_degrees(radians : Number) : Float64
Class Method Detail
def self.bearing(from_lat : Number, from_lng : Number, to_lat : Number, to_lng : Number, final = false) : Float64
#
The formula used for calculating the initial bearing between two points on the Earth's surfaceis is derived from the broader concepts of great-circle distance and navigation on a spherical Earth model. https://en.wikipedia.org/wiki/Great-circle_distance
https://github.com/Turfjs/turf/blob/master/packages/turf-bearing/index.ts