Game Cookies

September 28, 2007

Vectors

Filed under: development, math, study — nippysaurus @ 4:00 pm

When objects are represented on a computer screen they are stored in memory as a whole lot of points which are joined up and manipulated (mathematically) such that they make pretty pictures. Each point in this imaginary space is called a point, and a line joining two points is called a vector. As you can imagine, to represent a point in two dimensional space you will need two values which represent its location (or coordinate) on a cartesian plane. Vectors are normally dealt with as originating at the origin and ending at a given point.

This is an example of a point.

a=(1,2,2)

And a vector from the origin to that point.

\overline{oa}=(1,2,2)

The length of the vector from its origin to end point is called the magnitude. This is the formula to calculate a vectors magnitude.

|oa|=\sqrt{({a_{x}}^2+{a_{y}}^2+{a_{z}}^2)}

For comprehensive explanation on vectors check out the wikipedia entry.

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.