is there a java library which can handle quaternions and matrices (quaternion matrix multiplication) with all the standard operations?
(i searched google and here before - but didnt find any adequate solution)
is there a java library which can handle quaternions and matrices (quaternion matrix multiplication) with all the standard operations?
(i searched google and here before - but didnt find any adequate solution)
The Jave3D javax.vecmath package has quaternions support (Quat4D
) and quite a lot of the most common operations are supported. It also has matrix operations that can be applied to quaternions.
You will probably find that it fits most of your needs - and it should not be too hard to add any additional operations if you need them.
There is also JME3's Quaternion. JME3 classes' interface and javadoc is substandard. Also it uses float precision everywhere. I would only use it if performance is an issue, for example in a game.
Apache has Quaternion support in org.apache.commons.math3.complex. It seems to have the usual required operations.