Can you do Vector addition in Java, natively?

后端 未结 6 1296
太阳男子
太阳男子 2020-12-17 09:15

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).

6条回答
  •  星月不相逢
    2020-12-17 09:46

    Yes, you'll have to write a library (or use a third-party library) in order to perform vector arithmetic.

提交回复
热议问题