Skip to content

Instantly share code, notes, and snippets.

@skrat
Created July 20, 2015 08:32
Show Gist options
  • Save skrat/dc44fbd86ebeae730aa5 to your computer and use it in GitHub Desktop.
Save skrat/dc44fbd86ebeae730aa5 to your computer and use it in GitHub Desktop.
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