improvements supplier translations

This commit is contained in:
2013-01-10 20:56:30 +01:00
parent 4d0d1b7dd1
commit f6b28f84f0
7 changed files with 113 additions and 14 deletions
+1
View File
@@ -77,6 +77,7 @@ class Section
w = width
h = height
n = tables.size
return unless w > 0 && h > 0 && n > 0
l = Math.sqrt((w*h).to_f/n)
epsilon = (10 ** -(Float::DIG - 1)).to_f
while (w/l).floor * (h/l).floor < n # find a fitting combination