Loading...
Pages: [1]   Go Down
Author Topic: PVector for Arduino  (Read 319 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 38
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello all, I am trying to convert a program from processing to arduino because I needed to visualize the resulting mathematical model to fine tune it.  I am running into a problem because it is a boids model chocked full of PVectors.  There doesn't seem to be a vector math library for arduino and I am too deficient in C to do the conversion of the library properly.  I would deeply appreciate any guidance on an alternative or tips for converting the PVector library itself.  Here is a link to the Library..
http://www.google.com/codesearch/p?hl=en#Ej56LtI_pY0/trunk/processing/android/core/src/processing/core/PVector.java

Many Many thanks...
Logged

Netherlands
Offline Offline
Tesla Member
***
Karma: 90
Posts: 9407
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

some searching lead me to this lib - http://www.arduino.cc/playground/Code/MatrixMath
it does matrix math which is a close cousin of vectors IIRC smiley


Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

0
Offline Offline
Newbie
*
Karma: 0
Posts: 38
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I decided to do the Java->Arduino Library conversion...seems to work, code to come soon!
Logged

Pages: [1]   Go Up
Print
 
Jump to: