Can you do Vector addition in Java, natively?

后端 未结 6 1285
太阳男子
太阳男子 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:35

    I know this is old but maybe someone will find this useful:

    There is also Apache Commons Math which has a Vector2D class.

提交回复
热议问题