gl-matrix icon indicating copy to clipboard operation
gl-matrix copied to clipboard

Javascript Matrix and Vector library for High Performance WebGL apps

Results 92 gl-matrix issues
Sort by recently updated
recently updated
newest added

I'm a fan of chaining calls rather than passing data, and wondering if it'd be worthwhile adding classes to this to allow chaining on top of the current way. Not...

If a Matrix is created via `fromRotationTranslationScaleOrigin()`, is it possible to recover the origin, or more specifically, each of: * Rotation * Translation * Scale * Origin ?

Hey, so I've been pretty frustrated trying to get this basic thing to work. I'm using typescript and I want to pass data to WebGL via 'bufferData'. ```typescript let a:...

Thanks for the great library! Sometimes I need to covert quatarnion to eular angles, and I can not find how to do it. It would be greate if there's a...

feature-request

Shortens a vector to `maxLength` if it is longer. ```javascript export function truncate(out, maxLength) { if (vec2.length(out) > maxLength) { setLength(out, maxLength) } return out } ```

feature-request

Versions 3.4.1/2/3 introduced breaking changes with the removal of `exports` and `types`. These changes are also not reflected in this repository. ```js { "version": "3.4.0", "name": "gl-matrix", "description": "Javascript Matrix...

Adding a unary op that will set each of the output vector's elements to the absolute value of the corresponding input element. Useful for mapping a bounding box half diagonal...

```javascript equals([1, 2, 3], [Infinity, Infinity, Infinity]) // should be false but is true ``` I think it's because of the way it multiplies `EPSILON` by the maximum value. This...

I was looking at the code for the method setAxes (https://glmatrix.net/docs/quat.js.html#line716) and it initialize the mat3 as if the axes are not specified all together (so right would be the...