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 Byte56, Josh Petrie, Tetrad♦ Jan 4 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 specific 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, see the FAQ for guidance.
|
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 |
|||
|
|
JAMA math.nist.gov/javanumerics/jama Colt acs.lbl.gov/software/colt jblas jblas.org 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. see http://stackoverflow.com/questions/529457/performance-of-java-matrix-math-libraries |
|||||||
|
|
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. |
|||||
|