diff options
author | hanemile <hanemile@protonmail.com> | 2018-11-03 17:53:44 +0100 |
---|---|---|
committer | hanemile <hanemile@protonmail.com> | 2018-11-03 17:53:44 +0100 |
commit | d85773ffda4a6a2602b319cc0ee8ec757cc0042b (patch) | |
tree | 6cf790d4886773c26243ac2865326b0480d35d22 /structs_test.go | |
parent | e153a00a6031cc52e5f69c2b76d56ebd438af267 (diff) |
Exported the quadtree function (quadtree -> Quadtree)
Diffstat (limited to 'structs_test.go')
-rw-r--r-- | structs_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
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) |