improvements supplier translations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user