From e634c9b01669aa813a3e6d4ac61cc4716b71f3f1 Mon Sep 17 00:00:00 2001 From: hanemile Date: Mon, 21 Jan 2019 12:58:01 +0100 Subject: reviewed the comments --- quadtree.go | 3 +-- 1 file changed, 1 insertion(+), 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) } -- cgit 1.4.1