https://github.com/othree/immutable-quadtree-js
Immutable Quadtree in JS
https://github.com/othree/immutable-quadtree-js
Last synced: over 1 year ago
JSON representation
Immutable Quadtree in JS
- Host: GitHub
- URL: https://github.com/othree/immutable-quadtree-js
- Owner: othree
- License: mit
- Created: 2015-04-11T14:21:00.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-24T05:59:09.000Z (about 11 years ago)
- Last Synced: 2024-04-24T22:42:46.886Z (about 2 years ago)
- Language: JavaScript
- Size: 367 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# immutable-quadtree-js
[](https://travis-ci.org/othree/immutable-quadtree-js)
Immutable Quadtree in JS
## Example
var a = new ImmutableQuadTree(4);
var b = a.add('0000', {_id: 'ABC'});
var c = b.add('0000', {_id: 'ABC'});
var d = c.add('0010', {_id: 'BBB'});
a === b; // false
b === c; // true
c === d; // false
var e = d.keep('001');