@repcomm/vec2d
v1.1.1
Published
2d vector
Downloads
3
Maintainers
Readme
vec2d
OOP Vector2 as extracted from repcomm/scenario2d
Split into a separate lib for the sake of supporting other projects in a way that reduced bloat.
Using
To install with npm runnpm install @repcomm/vec2d
This package comes with typescript definitions, and should work in both typescript and javascript.
Example Usage
TODO
Compiling
TS -> JS is done using babel.js You can check out ts-esm-babel-template Which shows esmodule + typescript w/ babel -> js output
or webpack-ts-template Which shows esmodule + typescript w/ babel + npm package integration
To build you'll want to clone the repo
git clone https://github.com/RepComm/vec2d.git
Run npm install
to get dependencies
Run build.sh
(note: runs npm run build
)
for compiling to javascript
For compiling ts defs you'll need typescript
Run npm install -g typescript
Run build-types.sh