@repcomm/vec2d
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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 run
npm 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

Package Sidebar

Install

npm i @repcomm/vec2d

Weekly Downloads

0

Version

1.1.1

License

Unlicense

Unpacked Size

4.77 kB

Total Files

6

Last publish

Collaborators

  • repcomm