Sha256: a31544146a9a9137046d54234dbc4d38790cbb9506811a61b7f7a3521921dcf5

Contents?: true

Size: 211 Bytes

Versions: 2

Compression:

Stored size: 211 Bytes

Contents

class BigDecimal

  def to_deg
    (self * Terraformer::DEGREES_PER_RADIAN).round Terraformer::PRECISION
  end

  def to_rad
    (self * Terraformer::RADIANS_PER_DEGREE).round Terraformer::PRECISION
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
terraformer-0.0.3 lib/ext/big_decimal.rb
terraformer-0.0.2 lib/ext/big_decimal.rb