Can I confirm that using open mail does not mean we have to change any import statements or anything. It is just a matter of swapping the vecmath.jar yeah? Would everything need to be recompiled against the openmali jar? I would require the user could choose which to use. I really don’t want to be committed to Xith3D as the renderer. Also I would much rather be able to distribute the binaries as dependant on the vecmath jar as they are easy to get hold of.
[quote]I still don’t see the point of the RealPointer class.
[/quote]
Ah yes, the sacred RealPointer class. That is simply supposed to be an object orientated version of how a pointer acts like in C source code. It was used to help porting. You could literally replace all C code like Real * a = {1,2,3}; a++. It’s half between a reference and an array. In the ODE source its used as both sometimes so it was a real headache porting some of the code until the RealPointer class. There is actually no point in having it in JOODE now, it was just to help porting. In the c code Vector3 and Matrix4 etc. were all in a sense subclasses of Real pointers (becuase they were all just arrays of floats) .
Everywhere where their is a JOODE RealPointer should eventually at least get replaced by a Vector3 or another subclass of it. The only part I would be worried about is the LCP implementations, as they used array indexing to jump about Vectors. In ODE it was possible to create a massive array and move the pointer address about (the index in the RealPouinter class), which meant the pointer looked up different Vector3 (or matrices or whatever).
Tom