Module: Gpx2png::Calculations::BaseClassMethods
- Included in:
- Base
- Defined in:
- lib/gpx2png/calculations/base_class_methods.rb
Instance Method Summary collapse
- #deg2rad(deg) ⇒ Object
-
#rad2deg(rad) ⇒ Object
Some math stuff.
Instance Method Details
#deg2rad(deg) ⇒ Object
9 10 11 |
# File 'lib/gpx2png/calculations/base_class_methods.rb', line 9 def deg2rad(deg) return deg * Math::PI / 180.0 end |
#rad2deg(rad) ⇒ Object
Some math stuff
5 6 7 |
# File 'lib/gpx2png/calculations/base_class_methods.rb', line 5 def rad2deg(rad) return rad * 180.0 / Math::PI end |