swap 1st layer and support

This commit is contained in:
Stewart Allen 2018-01-20 18:37:00 -05:00
commit c088b7651e
2 changed files with 18 additions and 10 deletions

View file

@ -1050,6 +1050,14 @@ var gs_base_polygon = exports;
return out;
};
PRO.shortestSegmentLength() {
var len = Infinity;
this.forEachSegment(function(p1, p2) {
len = Math.min(len, p1.distTo2D(p2));
});
return len;
};
/**
* @param {Polygon} poly clipping mask
* @returns {?Polygon[]}