Method: PerfectShape::Math.degrees_to_radians

Defined in:
lib/perfect_shape/math.rb

.degrees_to_radians(degrees) ⇒ Object

converts angle from degrees to radians (normalizing to BigDecimal)



36
37
38
# File 'lib/perfect_shape/math.rb', line 36

def degrees_to_radians(degrees)
  (Math::PI/BigDecimal('180'))*BigDecimal(degrees.to_s)
end