lib/geo_calc/calc/rhumb.rb in geo_calc-0.7.3 vs lib/geo_calc/calc/rhumb.rb in geo_calc-0.7.4

- old
+ new

@@ -5,11 +5,11 @@ # see(http:#williams.best.vwh.net/avform.htm#Rhumb) # # @param [GeoPoint] Destination point latitude and longitude of # @return [Numeric] Distance in km between start and destination point def rhumb_distance_to point - GeoCalc::Calc::Rhumb.rhumb_distance_to self, point + GeoCalc::Rhumb.rhumb_distance_to self, point end # Returns the distance from this point to the supplied point, in km, travelling along a rhumb line # # @param [GeoPoint] Start point with (latitude, longitude) @@ -43,11 +43,11 @@ # # @param [GeoPoint] Destination point (latitude, longitude) # @return [Numeric] Bearing in degrees from North # def rhumb_bearing_to point - GeoCalc::Calc::Rhumb.rhumb_bearing_to self, point + GeoCalc::Rhumb.rhumb_bearing_to self, point end # Returns the bearing from this point to the supplied point along a rhumb line, in degrees # # @param [GeoPoint] Destination point (latitude, longitude) # @return [Numeric] Bearing in degrees from North @@ -73,10 +73,10 @@ # # @param [Number] brng: Bearing in degrees from North # @param [Number] dist: Distance in km # @returns [Array] Destination point as an array [lat, long] def rhumb_destination_point brng, dist - GeoCalc::Calc::Rhumb.rhumb_destination_point self, brng, dist + GeoCalc::Rhumb.rhumb_destination_point self, brng, dist end # Returns the destination point from this point having travelled the given distance (in km) on the # given bearing along a rhumb line # \ No newline at end of file