Converts a rotation into three numbers.