Commodity bundles as vectors By definition,vectors are quantities having magnitude as well as direction ,especially as determining the position of one point in space relative to another

We study consumption bundles by taking them as vectors.My question is why can't we think of them as scalar quantities to study them.Why do we think of consumption bundles as locations in commodity space.What is its use?

In real world, whenever we think of commodities , only their quantities come to our mind.And when we compare two commodity bundles, we only compare their quantities.Then,why do we have to bring in the concept of vectors here...are there any cases in the real world where we are concerned about the displacement of the commodity bundles.I am unable to understand this.

Thanks.
First of all, you need to expand the definition of a vector. It is not only quantities having maginitude and direction. While I agree that is the representation in $\mathbb R^2$, it is not always the case. Think of a vector as a representation of any ordered group of numbers $(x_1,x_2,...,x_n)$ and forget completely that you ever thought these implied magnitud and direction.

We think of commodity bundles as vectors and not as quantities by themselves because we want to be able to explain consumption choices as bundles. Let me give you an example with a bundle of 2 goods, $(x_1, x_2)$. Think that $x_1$ is the amount of coffees that you can buy whereas $x_2$ is the amount of packets of sugar that you can buy. We want to be able to compare, say, $(2,1)$ with $(1,2)$. I agree, we could analyze both the choice of both goods separately, but ultimately we want to know what is the optimal consumption bundle and not the optimal amount of sugar and coffee separated. Now, did I say something that entails magnitude? Or direction? No.

Bottomline, yes, we are thinking about quantities of goods, but when we say vectors, it means bundles of quantities of goods. That is ultimately what happens in the real world.