[quote]Will it affect the speed significantly
[/quote]
I would preffer to use doubles. Much less problems with bad rounding.
If Java would compile floats, and doubles optimally there would be 2x decrease in speed for doubles,if you don’t think about other isues in CPU pipeline. I consider advantage of doubles as worthy to that 2x possible slowdown. Note that 2x difference was measured in a test that attempted to maximalize amount of instructions per second (sciencemark float/double SSE2 matrix multiply on celeron presscott core.). I expect that in real life it would be more like 1.4 difference.
Also I encountered a code that used floats, and was 10x SLOWER than code with doubles (highly likely a bug in JIT, or not.).
Few other notes.
I would be against abreviation in name. Too similar to JOGL, JOAL, and so on. A some more nicely sounding name would be more fitting.
Also isn’t one of reasons for this undertaking to avoid mistakes present in ODE? And to have Java standards more abiding interface? Class names needn’t be exactly copied from ODE.
Note that a code that believes into some documentation of other code that was ported from, often ends with poor documentation, if any documentation at all.
I don’t think a class like.
public class ODEstore {
public double data
public double data2
}
Would be against any Java’s conventions. Who is spreading that rummor? (This was actually asked by Lina Inverse…) Public variables are confy, and less error prone in a lots of situations. The speed difference between public access and a inline of get(set( is at most 2x on server after considerable running time. It’s a quite opposite situation on the client (Or at least was on first JVM in 5.0 series.).
If you really need some implementation of matrix, I have one nearly ready, It could do multiply, inverse, and determinant. It looks like all what is needed. Actually it could do also perpetualization of itself.
YUDITH is a very nicely looking text editor on the Linux, with UTF support on top of that.