你能用Java本地添加Vector吗? [英] Can you do Vector addition in Java, natively?

查看:190
本文介绍了你能用Java本地添加Vector吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道java中有一个Vector类,但它似乎只是一个更简单的ArrayList类型的交易,而不是一个实际的数学Vector(如在数量和方向上)。

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

有没有办法在Java中进行矢量操作(特别是添加)?或者我是不是自己不得不实施它或使用第三方模块?

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?

-Jenny

推荐答案

是的,您必须编写课程或使用库,例如​​ JScience

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

这篇关于你能用Java本地添加Vector吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆