Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
janetacarr committed Jan 16, 2024
1 parent 037d36a commit b118f04
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 b118f04

Please sign in to comment.