test if a polygon completely contains another polygon
this can useful when computing whether or not a polygon is a hole or island.
This library is not highly optimized, but should suit your needs for the general case. Hit me up if it's not fast enough and I'll see what we can do.
npm install 2d-plolygon-contains-polygon
var a =0 0100 0100 1000 100;var b =20 2080 2080 8020 80;console;// output: true
container are polygons represented by a 2d array (i.e.
[[x, y], [x, y], ])
contained is contained in