about summary refs log tree commit diff
path: root/structs
diff options
context:
space:
mode:
Diffstat (limited to 'structs')
-rw-r--r--structs/structs.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/structs/structs.go b/structs/structs.go
index ad47731..6f1dd57 100644
--- a/structs/structs.go
+++ b/structs/structs.go
@@ -1,6 +1,18 @@
 package structs
 
+// coordinate type storing a position
 type coord struct {
 	x float64
 	y float64
 }
+
+// newCoord returns a new coordinate using the given values
+func newCoord(x float64, y float64) coord {
+	return coord{x, y}
+}
+
+// boundingBox defines a single cell in the quadtree
+type boundingBox struct {
+	center        coord
+	halfDimension float64
+}