Module: GeoCalc
- Defined in:
- lib/geo_calc/calc/distance.rb,
lib/geo_calc.rb,
lib/geo_calc/calc.rb,
lib/geo_calc/calc/rhumb.rb,
lib/geo_calc/calc/bearing.rb,
lib/geo_calc/pretty_print.rb,
lib/geo_calc/calc/midpoint.rb,
lib/geo_calc/calc/destination.rb,
lib/geo_calc/calc/intersection.rb
Overview
-
-
-
Latitude/longitude spherical geodesy formulae & scripts (c) Chris Veness 2002-2010
- www.movable-type.co.uk/scripts/latlong.html
Defined Under Namespace
Modules: Bearing, Destination, Distance, Intersection, Midpoint, PrettyPrint, Rhumb
Class Method Summary collapse
Class Method Details
.apis ⇒ Object
17 18 19 |
# File 'lib/geo_calc/calc.rb', line 17 def self.apis [:Bearing, :Destination, :Distance, :Intersection, :Midpoint, :Rhumb] end |
.included(base) ⇒ Object
11 12 13 14 15 |
# File 'lib/geo_calc/calc.rb', line 11 def self.included base apis.each do |api| base.send :include, "GeoCalc::#{api}".constantize end end |