I was wondering why do I need to pass the x component to the vec_set function to set the three components (XyZ)

vec_set(my.x,your.x);

I Just need to know how does the function extract the y and Z components of the vector from the x component only

may be my Question is very trivial for most of you, but I'm coming from a cpp background and we don't deal with vectors that way