point2js

2-dimensional Point class with support for operations

Usage no npm install needed!

<script type="module">
  import point2js from 'https://cdn.skypack.dev/point2js';
</script>

README

Build Status">

Standalone two-dimensional Point class with support for vector operations, heavily inspired in PaperJS and Phaser implementations. Here we are trying to make a fluent, side-effects free, tested api.

Getting Started

Install the module with: npm install point2js

var Point = require('point2js');
var p = new Point(); // {x: 0, y: 0}
# creates a browser.js
$ grunt browserify

Documentation

(Coming soon) - check out the tests

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

License

Copyright (c) 2014 psychonull
Licensed under the MIT license.