polygon miter paths. bump rev 2.3.D6

This commit is contained in:
Stewart Allen 2020-11-11 14:40:15 -05:00
commit 4c00a41a2a
8 changed files with 83 additions and 8 deletions

View file

@ -6,7 +6,7 @@
var AP = Array.prototype;
/** ******************************************************************
* array prototype helpers
* Array prototype helpers
******************************************************************* */
if (!AP.flat) {
@ -148,7 +148,7 @@
};
/** ******************************************************************
* string prototype helpers
* String prototype helpers
******************************************************************* */
String.prototype.reverse = function() {
@ -167,4 +167,13 @@
return Math.max(min,Math.min(max,val));
};
/** ******************************************************************
* Number static helpers
******************************************************************* */
Number.prototype.round = function(digits) {
const pow = Math.pow(10,digits || 3);
return Math.round(this.valueOf() * pow) / pow;
};
})();