optimize math of plotgen

optimized the calcul for plot floor generation
Merge pull request #3 from ZachBora/master

optimize math of plotgen