Converts three numbers into a rotation.