Use floor() instead of static_cast<int> for rounding.

This way the code is less likely to fall over with negative coordinates.

Created by  Robert Vollmert  on October 11, 2009
B5ED3LZM7H6NMC7HBVUWKE4AODTQSKF4EOKZ7KZBZVOCGBZ3XMGQC
Change contents