PDA

Click to See Complete Forum and Search --> : vector addition ?



uerland
09-11-2002, 03:14 PM
Just want to know if it's possible to do vector addition with Flash ?

Let's say I have 20 vectors with different angles and all with the same length.
Now Flash should arrange them side by side and calculate the resulting vector and its length.

Is that possible ? :)

muckyMuckMan
09-11-2002, 07:10 PM
There are two vector classes on this site:

http://www20.brinkster.com/ahab/library/index.htm

uerland
09-12-2002, 04:51 AM
nice, thanks :)

ericlin
09-12-2002, 07:47 AM
if vectors are in the format of dx,dy, then just sum the dx's and dy's;

A vactor (3,4) adding a vector (6,-3) will be a vector of (9,1);

If the vector is in 3D format dx,dy,dz we still sum them up.

If the vector is in the format of (length, angle), then convert them to (x,y) format before sum them up.

uerland
09-12-2002, 08:18 AM
Yep that's clear. What I want to achieve is that Flash draws these vectors and the resultant for me :).