I'm writing an OpenGL app with Java. I need to do some math for camera and frustum culling (for AABB). Could you suggest a simple and fast Java math library for that?
closed as not constructive by MichaelHouse♦, Josh♦, Tetrad Jan 4 '13 at 18:30
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. If this question can be reworded to fit the rules in the help center, please edit the question.
Vecmath from Java3d http://java.net/projects/vecmath is useful for standard 3d geometry stuff.
Not sure camera and frustum culling would really be a bottleneck, but if you use this heavily you should try to reuse things like Vector3f rather than calling
new the whole time which can lead to costly garbage collection.
I'am the author of la4j library (Linar Algebra for Java). I've just released verion 0.3.0. Try to look at it. la4j works pretty fine now with sparse and dense matrices.
These come to mind first. jblas, thanks to the natives, seems to be a lot faster than the other though. Keep in mind the applet loader from LWJGL allow you to easily use natives in an applet.