Converts a vector into three numbers.