also rotating scan correctly for SQUINT calculation.