Permalink
Browse files

resolve ruby warnings "don't put space before argument parentheses" r…

…adius.rb lines 49, 50, 76, 77
  • Loading branch information...
dburt committed Jun 2, 2011
1 parent 609a291 commit 100ce29ce12c4c2db1d567569922fd0946382ee2
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/geo_magic/radius.rb
View
@@ -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

0 comments on commit 100ce29

Please sign in to comment.