module Dieses::Support::Math
Constants
- GOLDEN_RATIO
- SILVER_RATIO
Public Instance Methods
to_degree(radian)
click to toggle source
# File lib/dieses/support/math.rb, line 13 def to_degree(radian) radian * 180 / ::Math::PI end
to_radian(degree)
click to toggle source
# File lib/dieses/support/math.rb, line 9 def to_radian(degree) degree / 180 * ::Math::PI end