### From Draftsperson.net

(Difference between revisions)

**Revision as of 06:05, 9 May 2007** Allan (Talk | contribs)
← Previous diff |
**Revision as of 06:10, 9 May 2007** Allan (Talk | contribs)
Next diff → |

**Line 11:** |
**Line 11:** |

| ===Points=== | | ===Points=== |

| Most 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!). | | Most 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!). |

| + | |

| + | |

| + | [[Image:MickDVec 1-image1.png|thumb|center|383px|Figure 1 - Showing a point in 2d space.]] |

| + | |

| + | 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 - |

| + | |

| + | ===Vectors=== |

| + | |

| + | A 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. |

## Revision as of 06:10, 9 May 2007

**Vectors** 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:-

- The difference between Points and Vectors and why we need them?
- The components that make up a Vector
- How we use them and where to next?

These articles won't be going into the nitty-gritty 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 Vectors

### Points

Most 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!).

Figure 1 - Showing a point in 2d space.

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 -

### Vectors

A 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.