Accurate rangefinder with laser pattern shifting