Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/cglm.rb
Instance Method Summary collapse
Instance Method Details
#to_degrees ⇒ Object
8 9 10 |
# File 'lib/cglm.rb', line 8 def to_degrees self * 180.0 / Math::PI end |
#to_radians ⇒ Object
4 5 6 |
# File 'lib/cglm.rb', line 4 def to_radians self * Math::PI / 180.0 end |