Rework the entire math library to GLM.