Update LineScanner and Scanner to use integers instead of floats for distance calculations.