From 62b1d17aa66f7d94685cbf51b21e787064be2d2b Mon Sep 17 00:00:00 2001 From: hanemile Date: Wed, 23 Jan 2019 16:47:35 +0100 Subject: updated the recursion limit --- quadtree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quadtree.go b/quadtree.go index ebab528..a954601 100644 --- a/quadtree.go +++ b/quadtree.go @@ -62,7 +62,7 @@ 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 { - if n.Boundry.Width < 1e-20 { + if n.Boundry.Width < 1e-60 { return fmt.Errorf("%s", "Max Recursion depth reached!") } -- cgit 1.4.1