Can you do Vector addition in Java, natively?

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

    Java3D has various forms of Vector classes (Vector3d, Vector3f, Vector4d, etc). Java3D, of course, is somewhat risky these days, though, as it's seemingly set for abandonment.

提交回复
热议问题