flo-vector2d

A purely functional 2d vector library.

Usage no npm install needed!

<script type="module">
  import floVector2d from 'https://cdn.skypack.dev/flo-vector2d';
</script>

README

This package is ESM only and can be used in Node.js (or in a browser when bundled using e.g. Webpack).

Additionally, self-contained ECMAScript Module (ESM) files index.module.js and index.module.min.js in the ./browser folder is provided.

Or, if you need a legacy browser script there is also index.js and index.min.js in the ./browser folder. Either script exposes a global variable.