From b118f04a9333973f9eb96ee1459f312b78d0f13d Mon Sep 17 00:00:00 2001 From: Janet Carr Date: Mon, 15 Jan 2024 19:04:51 -0500 Subject: [PATCH] Update readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b170a36..be73d1b 100644 --- a/README.md +++ b/README.md @@ -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}, @@ -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} @@ -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}