With difficulty! The d-dimensional case (d>2) gets quite messy as the number of combinations increases. If you are interested see here