Skip to content

# kristianmandrup/geo_magic

### Subversion checkout URL

You can clone with HTTPS or Subversion.

Merge pull request #1 from dburt/master

`Hi, here's a simple fix to eliminate warnings from ruby -w output.`
• Loading branch information...
commit f4e3b74a1f69b9dbe89f64309461cc9f95a571f1 2 parents 609a291 + 100ce29
authored
Showing with 4 additions and 4 deletions.
1. +4 −4 lib/geo_magic/radius.rb
8 lib/geo_magic/radius.rb
 @@ -46,8 +46,8 @@ def create_points_in_circle number q = rand(range) * PI_2 r = Math.sqrt(rand(range)) - dlong = denormalize (range * r) * Math.cos(q) - dlat = denormalize (range * r) * Math.sin(q) + dlong = denormalize(range * r) * Math.cos(q) + dlat = denormalize(range * r) * Math.sin(q) point = GeoMagic::Point.new @center.latitude + dlat, @center.longitude + dlong res << point @@ -73,8 +73,8 @@ def create_point_within_circle q = rand(range) * PI_2 r = Math.sqrt(rand(range)) - dlong = denormalize (range * r) * Math.cos(q) - dlat = denormalize (range * r) * Math.sin(q) + dlong = denormalize(range * r) * Math.cos(q) + dlat = denormalize(range * r) * Math.sin(q) GeoMagic::Point.new @center.latitude + dlat, @center.longitude + dlong end
Please sign in to comment.
Something went wrong with that request. Please try again.