1.1.0 • Published 8 years ago

pvec v1.1.0

Weekly downloads
11
License
MIT
Repository
github
Last release
8 years ago

PVec

Build Status Dependencies Dev Dependencies npm Downloads GitHub license

JavaScript port of the Processing PVector class.

  • Easy to use.
  • No dependencies.
  • Built-in TypeScript declaration typings.
  • UMD format for usage via either CommonJS or ESM.

Usage

First add PVec as a dependency of your project.

npm install pvec --save

PVec can now be used within your project.

CommonJS (Node)

const PVec = require('pvec')

ES Module (Webpack/Rollup/etc.)

import PVec from 'pvec'

Documentation

Functionality is very similar to the PVector class in Processing.

PVector reference (Processing/Java)

Dedicated documentation for PVec coming soon

Build

If for whatever reason you wish to build PVec yourself, to generate the output build files for PVec, simply run;

npm run build

This will generate the CommonJS and ES Module versions of PVec, and also produce the TypeScript declaration types file.

A testing suite built on Mocha can be invoked via;

npm test
1.1.0

8 years ago

1.0.0

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago