We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
PVector syntax (Read 160 times)
PVector syntax
Mar 10th, 2009, 4:23pm
 
I am tring to add two vectors together to a new vector array t[i]

However somehow i have the syntax wrong

PVector add(Pvector f,Pvector f2, Pvector t[i])

Can anyone indicate what is the best way?

Even if I have to add each vector using two lines that would work.
Re: PVector syntax
Reply #1 - Mar 10th, 2009, 5:29pm
 
See PVector::add() reference.

t[i] = PVector.add(f, v);
Page Index Toggle Pages: 1