Mathematicians have found a hidden ‘reset button’ for undoing rotation