Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/gpstool/extensions/numeric.rb
Overview
This file is part of the “GPSTool” project, and is distributed under the MIT License. Copyright © 2011 Samuel G. D. Williams. <www.oriontransfer.co.nz> See <LICENSE.txt> for licensing details.
Instance Method Summary collapse
Instance Method Details
#to_radians ⇒ Object
6 7 8 |
# File 'lib/gpstool/extensions/numeric.rb', line 6 def to_radians self.to_f / 180.0 * Math::PI end |