



Understanding VectorsFrom Draftsperson.netVectors are very important to understand if you want to use them in your daily manipulations of computer graphics. They are one of the most fundamental building blocks of computational geometry and this will be the first of a few short articles about vectors where I will try to explain them in easy to understand terms. The articles will be about the the following:
These articles won't be going into the nittygritty of the mathematics of vectors, that will come later. Like most things which are new to us, I think a simple explanation can go a long way to understanding what you're trying to achieve without getting too bogged down or lost in the math! Part 1  Points and VectorsPointsMost of us are familiar with Points, in 2d (2 dimensions of space) we have a pair of coordinates usually written p(5,12) where 5 = 5 units along the x axis and 12 = 12 units along the y axis, all simple stuff I know but have a look at figure 1 and I'll get to the point shortly (pun intended!).
So, what else does a point have? A point has a position in space and that's about it, but there are some things that we would like to know about that point such as what direction, or how far away is that point from another point? Enter the Vector  VectorsA Vector is very similar to a Point and it has been argued that there is no difference when it comes to using them in computations as a vector is represented in a similar way to a point i.e. v(5,12), where 'v' denotes this array as a vector. But the 'great' mathematicians had more complex tasks in mind which only by developing the vector and it's mathematical functions could be solved. A simple problem, say you want to know in which direction or how far one point is from another, you can 'pull a vector' to it. How do you do that? have a look at the figure2 below.




Personal tools
