change fingerprinting algorithm

This commit is contained in:
Stewart Allen 2021-07-10 21:19:56 -04:00
commit aeb8d9512a
6 changed files with 79 additions and 20 deletions

View file

@ -58,6 +58,17 @@
UTIL.isCloseTo(this.maxy, bounds.maxy, margin);
};
/**
* @returns {Number} absolute delta in x,y coordinate space
*/
PRO.delta = function(bounds) {
return
Math.abs(this.minx - bounds.minx) +
Math.abs(this.miny - bounds.miny) +
Math.abs(this.maxx - bounds.maxx) +
Math.abs(this.maxy - bounds.maxy);
};
/**
* @param {Bounds} b
*/