Skip to content

Commit

Permalink
[core] [types] breaking change update to quadtree & octree
Browse files Browse the repository at this point in the history
- update tree impls to use points as unqiue keys w/ attached data values
- update PSpatialTree protocol, split out PTreeOps (in spatialtree ns) for non-public ops
- update tree selection fns to return stored values, not the points they're indexed at
- update org structure of spatialtree ns
  • Loading branch information
postspectacular committed Mar 23, 2015
1 parent 2f672cf commit 8e7ba4f
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 98 deletions.
11 changes: 2 additions & 9 deletions geom-core/src/core.org
Original file line number Diff line number Diff line change
Expand Up @@ -541,17 +541,10 @@ protocol consisting of just this one function:

#+BEGIN_SRC clojure :noweb-ref protos-types
(defprotocol PSpatialTree
(add-point [_ p])
(child-index-for-point [_ p])
(child-for-point [_ p])
(add-point [_ p d])
(delete-point [_ p])
(get-children [_])
(get-point [_])
(set-child [_ i c])
(set-children [_ c])
(set-point [_ p])
(make-child-for-point [_ p add-point?])
(split-node [_]))
(get-point-data [_]))
#+END_SRC

*** Buffered instances
Expand Down
Loading

0 comments on commit 8e7ba4f

Please sign in to comment.