JS has got to be the worst language for 3D math: - No operator overloading so yo...

@zeux@mastodon.gamedev.place

JS has got to be the worst language for 3D math:

- No operator overloading so your code is hard to read
- Allocation overhead so you end up using mutable objects which can be error prone
- Which then leads to random "cached" objects making code even harder to read

Allocations could in theory be elided by JIT but often aren't in practice.

The error prone mutability is exacerbated in Three.js by functions returning the reference, so innocuous code like `var p = tex.transformUv(uv)` mutates uv.