Here you can download the source code I implemented as part of my M.S. thesis which is titled: “A Qualitative Calculus for Three-Dimensional Rotations”. Download it from here. The implementation is in Java. Once you download and unzip, run as follows:
The calculus consists of two parts; qualitative (sign) vector rotation and qualitative rotation composition. Enter 1 to run the former or enter 2 to run the latter.
Every qualitative vector is a triple of signs -, 0 or +. To enter the sign rotation matrix, you would need to enter the first and the second rows respectively and then choose between the suggested rotations with the same first and second rows. If there is no matching rotation matrix, the system exits. To avoid that you can choose a rotation from the set of existing sign rotations, which is located in the file named signRotations.txt, and enter the rows in order.
Azam A. Asl