Are there any libraries like this for JavaScript?
Others you can check out:
- http://paperjs.org (especially "PaperScript" which does some magic to allow adding / multiplying etc. vectors if that's what you're after)
Also worth noting is that for most "computations" there is a likely a package available on npm
https://github.com/williame/csg.js is a fork where I made some performance improvements when I used it in a Ludum Dare game; dev vid https://www.youtube.com/watch?v=7zjz-hpm8No