Releases: toji/gl-matrix
v3.4.4
Merged multiple pull requests, addressed upcoming compatibility issues with Typescript, and updated some dependencies.
What's Changed
- Convert to type "module" and use package exports by @lkmill in #432
- random should only return unit vector when scale is undefined by @marcusround in #437
- Fix mat3.scale docs claiming to rotate input mat by @cedric-h in #445
- use symmetric half up rounding in all vector modules. fixes #447 by @mreinstein in #448
- Replace Math.hypot with Math.sqrt by @platypii in #449
- Fix JSDoc types in quat.fromEuler by @Vlad-Shcherbina in #454
- Improve the Performance of
vec4.randomby @Lakuna in #458 - Fix order param type in quat.fromEuler by @shannon in #461
- common: Add toDegree function for Consistency and Usability by @joaomariolago in #463
- mat4.js JSDoc: quat4.toMat4 -> mat4.fromQuat by @pawplo in #472
- JSDoc: missing function argument by @pawplo in #473
- Minor Proofreading by @rotu in #474
- Align docs with parameters names by @HarelM in #475
- Fixes typos documentation comments in mat4.js by @LordArugula in #479
- Fix return types of matrix invert functions by @ddadamhooper in #481
- Fix build errors by locking dependencies by @hughsk-canva in #480
- Run tests on push using GitHub Actions by @hughsk-canva in #484
- Fix generated namespace types in index.d.ts by @robpalme in #487
- Improved calculation of angles for vec2 by @GDOR-11 in #490
- Optimized quaternion rotation routine by @infusion in #476
- Feature: For
common.glMatrixequalsmethod added optional paramtoleranceby default equals toEPSILONby @psnet in #469
New Contributors
- @lkmill made their first contribution in #432
- @marcusround made their first contribution in #437
- @cedric-h made their first contribution in #445
- @mreinstein made their first contribution in #448
- @platypii made their first contribution in #449
- @Vlad-Shcherbina made their first contribution in #454
- @Lakuna made their first contribution in #458
- @shannon made their first contribution in #461
- @joaomariolago made their first contribution in #463
- @pawplo made their first contribution in #472
- @rotu made their first contribution in #474
- @HarelM made their first contribution in #475
- @LordArugula made their first contribution in #479
- @ddadamhooper made their first contribution in #481
- @hughsk-canva made their first contribution in #480
- @GDOR-11 made their first contribution in #490
- @infusion made their first contribution in #476
- @psnet made their first contribution in #469
Full Changelog: v3.4.1...v3.4.4
v3.4.1
Rolls up various changes made since v3.3.0 while avoiding a backwards compatibility breaking change in how node modules were handled.
Note that a 3.4.0 was briefly published to npm with that breaking change before being deprecated in favor of this version.
What's Changed
- Improve mat4 determinant algorithm by @rhendric in #384
- Improve mat4 adjoint algorithm by @rhendric in #385
- Changed array type by @anvaka in #387
- add combined TRS decompose for mat4 by @randName in #402
- Support multiple intrinsic orders in quat.fromEuler by @DCtheTall in #407
- Add mat4.perspectiveZO, mat4.orthoZO for WebGPU by @toji in #413
- fix: typo by @ahaoboy in #416
- fix!: use dot product to compute quaternions equality by @Wawa27 in #418
- Optimize angle(v1, v2) by @munrocket in #430
- Optimize angle(a,b) for Vec2 by @munrocket in #431
New Contributors
- @rhendric made their first contribution in #384
- @anvaka made their first contribution in #387
- @randName made their first contribution in #402
- @DCtheTall made their first contribution in #407
- @ahaoboy made their first contribution in #416
- @Wawa27 made their first contribution in #418
- @munrocket made their first contribution in #430
Full Changelog: v3.3.0...v3.4.1
v3.3.0
v3.2.1
Minor fixes
- Fixed
.d.tsfile - Documentation is now generated correctly again
v3.2.0
Notable changes
Performance improvements
Minor fixes
- Document that angles are in radians
- mat2d documentation comment has been corrected
- devDependencies have been updated
v3.1.0
Notable changes
Performance improvements
Minor fixes
- GitHub repository can be used as an npm dependency
mat4.getRotation()bugfix- mat2d identity documentation comment has been corrected
- devDependencies have been updated
v3.0.0
Notable changes
-
Cherry-picking gl-matrix is now possible #339 #343 (e.g.
import * as vec2 from 'gl-matrix/vec2';) -
Webpack has been replaced with rollup #345
-
When simply including
dist/gl-matrix.jsin your website, the single top level object is nowglMatrixinstead of polluting the global namespace withvec2,vec3,mat4, etc.- A quick fix to get the old behavior back is
Object.assign(window, glMatrix)
- A quick fix to get the old behavior back is
-
vec4.crosshas been implemented -
vec2/3/4.zerohas been implemented
Minor fixes
v3.0.0 Pre-release
Notable changes
- Cherry-picking gl-matrix is now possible #339 #343 (e.g.
import * as vec2 from 'gl-matrix/vec2';) - Webpack has been replaced with rollup #345
- When simply including
dist/gl-matrix.jsin your website and not importing it, you have to includeglMatrix.before everything (e.g.glMatrix.vec4.create()instead ofvec4.create())
Minor fixes
v2.8.1
v2.7.0
Notable changes:
- Compiling
/dist/gl-matrix.jsin production mode - Tree shaking improvements
- Fixes dual quaternion normalizing
- Added quat.random()