Can you do Vector addition in Java, natively?

java, math, vector

Solution

Yes, you'll have to write a class or use a library such as JScience

Problem

I Know there's a "Vector" class in java, but it seems to be just a simpler ArrayList type of deal, not an actual, mathematical Vector (as in a magnitude and a direction). Is there any way to do Vector manipulations (particularly addition) in Java? Or am I stuck on my own having to implement it or use a third party module?

Original source