Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/cglm.rb

Instance Method Summary collapse

Instance Method Details

#to_degreesObject



8
9
10
# File 'lib/cglm.rb', line 8

def to_degrees
  self * 180.0 / Math::PI
end

#to_radiansObject



4
5
6
# File 'lib/cglm.rb', line 4

def to_radians
  self * Math::PI / 180.0
end