Converts three numbers into a vector.