Lose ugly, magic-number-infested MathUtil.distance()