about summary refs log tree commit diff
path: root/boundingBox.go
diff options
context:
space:
mode:
Diffstat (limited to 'boundingBox.go')
-rw-r--r--boundingBox.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/boundingBox.go b/boundingBox.go
index 6cf60c4..ff8bfb1 100644
--- a/boundingBox.go
+++ b/boundingBox.go
@@ -6,6 +6,7 @@ type BoundingBox struct {
 	Width  float64 // Width of the box
 }
 
+// NewBoundingBox returns a new Bounding Box using the centerpoint and the width given by the function parameters
 func NewBoundingBox(center Vec2, width float64) BoundingBox {
 	return BoundingBox{Center: center, Width: width}
 }