Skip to content

Commit

Permalink
Merge pull request #13 from janetacarr/update-docs
Browse files Browse the repository at this point in the history
Update readme
  • Loading branch information
janetacarr authored Jan 16, 2024
2 parents 037d36a + b118f04 commit c6b1ccc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To start building a quadtree, create a quadtree using `->quadtree` with a bound
``` clojure
user> (use 'quadtree-cljc.core)
user> (def tree (-> (->bounds 0 0 800 600)
(->quadtree 5 5 0 [] [])))
(->quadtree 5 5)))
#'user/tree
user> tree
{:bounds {:x 0, :y 0, :width 800, :height 600},
Expand Down Expand Up @@ -42,7 +42,7 @@ Or you can insert multiple with `insert-all`:

``` clojure
user> (def tree (-> (->bounds 0 0 800 600)
(->quadtree 5 5 0 [] [])
(->quadtree 5 5)
(insert-all [{:x 0 :y 0 :width 10 :height 10}
{:x 0 :y 5 :width 10 :height 10}
{:x 100 :y 150 :width 100 :height 100}
Expand All @@ -55,7 +55,7 @@ And finally we can even find colliding / intersection objects in the tree:

``` clojure
user> (-> (->bounds 0 0 800 600)
(->quadtree 5 5 0 [] [])
(->quadtree 5 5)
(insert-all [{:x 0 :y 0 :width 10 :height 10}
{:x 0 :y 5 :width 10 :height 10}
{:x 100 :y 150 :width 100 :height 100}
Expand Down

0 comments on commit c6b1ccc

Please sign in to comment.