tinymath a very small math library for c mostly geared toward manipulating vectors of length 3 and 3x3 matrices. setup sudo apt-get install libgsl0-dev cmake . make usage hopefully self explanatory by inspection of tinymath.h.