Converts three numbers into one rotation.