Created
July 20, 2015 08:32
-
-
Save skrat/dc44fbd86ebeae730aa5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = m.map(e => m.vector.apply(null, e), a_poly.vertices) | |
b = m.map(e => m.vector.apply(null, e), b_poly.vertices) | |
m.equals(m.set(a), | |
m.set(b)) | |
// you could cache the hash, so whenever and area (or polygon) is created/updated | |
// you would store the hash on it; inside the poly class (or Area) | |
v = m.map(e => m.vector.apply(null, e), this.vertices) | |
this._hash = m.hash(m.set(v)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment