gl-matrix
gl-matrix copied to clipboard
Javascript Matrix and Vector library for High Performance WebGL apps
This library used to be fast, but modern browsers are now allocating simple objects so fast that they are effectively free. Array allocation is still much slower and ArrayBuffer allocation...
Is it somehow possible to allow `gl-matrix` to use only `Float32Array`, disallowing any usage of normal js arrays?
So I successfully converted most of ``mat4`` to Wasm, but discovered a few problems on my road. E.g. ``mat4.create()`` returns an ``Float32Array``, but we cannot send arrays to Wasm directly...
I'm not sure what's the right way to fix this or even whether a fix is necessary. Just wanted to log it here: ```js // glMatrix version 3.3.0 // Note...
If u set the mat4 with a quaternion rotation, scale the mat4 and then call getRotation, u won't get the initial rotation, and normalize that result won't get it either....
It might be worthwhile to drop support for ancient browsers such as IE 11 at some point. Then we wouldn't have to transpile code to such an old Javascript version....
TypeScript is unable to derive types from `gl-matrix` when a single type is imported using `require('gl-matrix/vec3')` or something similar:   Nevertheless, both `require()` statements are valid and equivalent as...
# TLDR Types from `npm run build-dts` and esm build from `npm run build-esm` don't work together --- # Problem Plain project, no bundlers, just Typescript 3.9.6 with "es6" target...
I've been importing from `gl-matrix` with the following syntax: ```js import { determinant, getRotation } from 'gl-matrix/mat4'; import { length } from 'gl-matrix/vec3'; ``` My code builds correctly (microbundle 0.13...
Please be gentle as I am still learning and this is my first gitHub issue. This code, hopefully used properly, gives me distorted result: ```js let transformMatrix = new Float32Aray(16);...