gl-matrix's mat2, split into smaller pieces