Skip to content

sylvainfaubet/ts-polygons-intersect

 
 

Repository files navigation

ts-polygons-intersect

This script finds all points where the polygons intersect each other.

Install

npm install ts-polygons-intersect

Usage

import {Polygon, intersection} from 'ts-polygons-intersect';
const poly1 = Polygon.fromJson([{x:0,y:1}, ...]);
const poly1 = Polygon.fromJson([{x:1,y:0}, ...]);
const intersection = intersection(poly1, poly2);

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 81.1%
  • JavaScript 18.9%