change fingerprinting algorithm
This commit is contained in:
parent
c3eb7ce810
commit
aeb8d9512a
6 changed files with 79 additions and 20 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue