
gtsml owevwr <gtsml.owevwr@googlemail.com> writes:
I need fast low dimensional vector (2, 3 and 4 dimension let say). [snip] Ideally, low dimension vector are better as POD, without any pointer indirection for instance. [snip] And off course, could be great to have POD small matrices as well...
I know this request is probably over specialized but maybe I'm missing something already there
*shrug*, I don't know of anything. I think every vis and graphics project ends up creating their own vector class, which is kind of silly when you think about it. Such is life though. FWIW, one of the projects I work on uses these classes: https://gforge.sci.utah.edu/gf/project/basics/scmsvn/?action=browse&path=%2Ftrunk%2FVectors.h&revision=4&view=markup It's MIT licensed so I imagine you wouldn't have trouble using it. There's currently a known buglet w/ matrices, but we can't find a compiler on Linux / Mac / Windows which exhibits the bug.. and I'll fix it eventually. Still, you probably want to search around a bit more first. Without checking, I'd bet all of CrystalSpace, Ogre, VTK, Irrlicht, and <insert random google result for "open source 3d engine" here> include their own classes for vectors and matrices. Cheers, -tom