It would be very useful for you, if you read those lines in the manual, what are begin with this word Return.
For example, the first line immediatly after this vector(var x,var y,var z); is:
Returns the pointer to a temporary vector initialized to x,y,z, to be used as a parameter in vector functions.
I also advise to you read all the lines when you read a documented function.