In any number of dimensions, you divide a vector $\bf v$ by its length to get a unit vector, and in any finite number of dimensions that means $${(x_1,x_2,\dots,x_n)\over\sqrt{x_1^2+x_2^2+\cdots+x_n^2}}$$