StrandedKitty / streets-gl

🗺 OpenStreetMap 3D renderer powered by WebGL2
http://streets.gl
MIT License
598 stars 43 forks source link

MathUtils.shiftLeft / shiftRight can replace with >> << operator #140

Closed deepkolos closed 1 year ago

deepkolos commented 1 year ago

https://github.com/StrandedKitty/streets-gl/blob/dev/src/lib/math/MathUtils.ts#L155

image
StrandedKitty commented 1 year ago

It's not the same. Operators << and >> always output 32 bit integers, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Left_shift

Screenshot 2023-06-24 at 13 48 33