diff options
author | hanemile <hanemile@protonmail.com> | 2019-01-21 12:58:01 +0100 |
---|---|---|
committer | hanemile <hanemile@protonmail.com> | 2019-01-21 12:58:01 +0100 |
commit | e634c9b01669aa813a3e6d4ac61cc4716b71f3f1 (patch) | |
tree | d2a8b5f833a611f8b3b4203c9d2a356d257ccc53 | |
parent | ed62e1ea666dcb8073cf174712b855cc9963c4b8 (diff) |
reviewed the comments
-rw-r--r-- | quadtree.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/quadtree.go b/quadtree.go index dbbf229..2aad264 100644 --- a/quadtree.go +++ b/quadtree.go @@ -60,9 +60,8 @@ func (n *Node) subdivide() { // Insert inserts the given star into the Node or the tree it is called on func (n *Node) Insert(star Star2D) error { - // fmt.Printf("Hello, this is the insert function, I'm inserting the star %v", star) - // prevent the function to recurse to deep into the tree + // prevent the function from recursing to deep into the tree if n.Boundry.Width < 0.000001 { return fmt.Errorf("Could not insert star (%f, %f)\n", star.C.X, star.C.Y) } |