greggman / wgpu-matrix

Fast WebGPU 3d math library
https://wgpu-matrix.org
MIT License
298 stars 13 forks source link

Typo? #31

Closed rconde01 closed 3 weeks ago

rconde01 commented 4 months ago

In the 2.x to 3.x migration it says

mat4.identity()                       // returns Float32Array
mat4.identity(new Float32Array(16));  // returns Float32Array
mat4.identity(new Float64Array(16));  // returns Float32Array
mat4.identity(new Array(16));         // returns number[]

Should the 3rd case be Float64Array?

greggman commented 4 months ago

yes, thanks!

https://github.com/greggman/wgpu-matrix/commit/81fa51b417fbd058c3aefcc316d6d3ff3f1f1894