about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhanemile <hanemile@protonmail.com>2019-01-21 12:58:01 +0100
committerhanemile <hanemile@protonmail.com>2019-01-21 12:58:01 +0100
commite634c9b01669aa813a3e6d4ac61cc4716b71f3f1 (patch)
treed2a8b5f833a611f8b3b4203c9d2a356d257ccc53
parented62e1ea666dcb8073cf174712b855cc9963c4b8 (diff)
reviewed the comments
-rw-r--r--quadtree.go3
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)
 	}