Haxe port of github.com/toji/gl-matrix