# If a vector also has a length, why is it perceived to be of 3 values?

## Recommended Posts

Was wondering this when I learned about length vector functions in a tutorial..

Edited by that Abstract guy
##### Share on other sites

Because the three values defines an imaginary line going from 0,0,0 to the position in space described by the 3 values. That point can be far away or i can be close to 0,0,0. This way the 3 values are able to define both a direction and a length.

-b

Edited by bonsak
##### Share on other sites

length = square root of (x^2 + y^2 + z^2)

direction = normalize (x,y,z) [puts that point on the surface of a unit sphere]

You should check out dot and cross product too:

##### Share on other sites

Thanks for the answers and resources all of you!

##### Share on other sites

There's ways to decompose/describe a vector

- 3 coordinates (xyz) that scale the coordinate system unit vectors (ijk) and add them together:  P = i*x + j*y + k*z.

- direction (vector scaled to length 1) and legth/magnitude (distance from tail to head of the vector)

- direction (two angles) and length

And more...

It's all about using the representation that is more sensible to the operation you are doing. For angular related calcs direction is handy, while for position calcs you want to deal with xyz, etc.

Edited by probiner

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×