Package Exports
- @slydock/poly-js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@slydock/poly-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Poly-JS
Poly-JS is a library for manipulating 2D polygons and vertices
Features
- 2D vertices operations
- 2D lines operations
- 2D polygons operations
- 2D rect operations
- 2D circle operations
Installation
npm i @slydock/poly-js
Basic Usage
For any component need, you'll need to import the plugin
const {
Vector2,
Line,
Polygon,
Rect,
Circle
} = require('@slydock/poly-js');