Decided to use vecmath instead of gl-matrix for this one.