Converts three numbers into one vector.