Avec-ArduinoVector Library for making vectors in arduino. The code is really simple, just a relatively small template class, check it out!