Convertes three numbers into one rotation.