From d85773ffda4a6a2602b319cc0ee8ec757cc0042b Mon Sep 17 00:00:00 2001 From: hanemile Date: Sat, 3 Nov 2018 17:53:44 +0100 Subject: Exported the quadtree function (quadtree -> Quadtree) --- structs_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'structs_test.go') diff --git a/structs_test.go b/structs_test.go index ceeace7..5b00aa5 100644 --- a/structs_test.go +++ b/structs_test.go @@ -7,7 +7,7 @@ import ( // Quadtree Test func TestQuadtree(t *testing.T) { - testQuadtree := quadtree{ + testQuadtree := Quadtree{ nodeCapacity: 0, boundary: BoundingBox{}, pointsSlice: nil, @@ -110,16 +110,16 @@ func TestSubdivide(t *testing.T) { // test the Insert function func TestInsert(t *testing.T) { - // Define a new quadtree-root-boundary + // Define a new Quadtree-root-boundary var boundary = BoundingBox{ center: Coord{0, 0}, halfDimension: 3, } - // create a new quadtree using the boundary + // create a new Quadtree using the boundary var newQuadtree = *NewQuadtree(boundary, 0) - // Define a star and Insert it into the quadtree + // Define a star and Insert it into the Quadtree singleCoord := Coord{0.5, 0.5} newQuadtree.Insert(singleCoord) -- cgit 1.4.1