Method: PerfectShape::Math.radians_to_degrees

Defined in:
lib/perfect_shape/math.rb

.radians_to_degrees(radians) ⇒ Object

converts angle from radians to degrees (normalizing to BigDecimal)



31
32
33
# File 'lib/perfect_shape/math.rb', line 31

def radians_to_degrees(radians)
  (BigDecimal('180')/Math::PI)*BigDecimal(radians.to_s)
end