Using updated math library from three.js gl-matrix.