COG Verb - VectorAdd

Adds two vectors and returns the resultant vector. Syntax:

 addvec=VectorAdd(vector1, vector2); 

The Math

 addvec=(x1+x2, y1+y2, z1+z2) 

Geometrical Application

Two vectors are shown in this picture - one red and the other blue. If these two vectors were added, they would reach the position that the green arrows point to. The green arrows show that no matter which way you add the vectors, they both have the same result.

Image:Vectoradd.gif

This picture shows the resultant vector. When the red and blue vectors are added, they form the green vector shown here. The green vector reaches the same position as the two green arrows from the previous picture.

Image:Vectoradd2.gif

  • Create:
This page was last modified 23:34, 2 April 2006.   This page has been accessed 308 times.