Skip to content

Commit

Permalink
More accurate factors.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjy committed Sep 8, 2015
1 parent e7ab869 commit a69ea0d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/sqed/boundaries.rb
Expand Up @@ -95,11 +95,12 @@ def populated?
def zoom(width_factor, height_factor)
coordinates.keys.each do |i|
set(i, [
x_for(i) * width_factor,
y_for(i) * height_factor,
width_for(i) * width_factor,
height_for(i) * height_factor
(x_for(i).to_f * width_factor).to_i,
(y_for(i).to_f * height_factor).to_i,
(width_for(i).to_f * width_factor).to_i,
(height_for(i).to_f * height_factor).to_i
])

end
end

Expand Down

0 comments on commit a69ea0d

Please sign in to comment.