I believe here, fromX or toX is a float since I've seen people (in the past) standing between tiles. So, probably fromX.