Permalink
Browse files

resolve ruby warning "don't put space before argument parentheses"

  • Loading branch information...
1 parent ab03906 commit ef7f08428a7b56fc131391e53bd17e1bb5e801c2 @dburt dburt committed Jun 2, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/geo_magic/radius/circular.rb
@@ -33,8 +33,8 @@ def random_point_within
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
@@ -52,8 +52,8 @@ def random_points_within 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

0 comments on commit ef7f084

Please sign in to comment.