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.go24
1 files changed, 4 insertions, 20 deletions
diff --git a/boundingBox.go b/boundingBox.go
index ad02eab..4e9bf7d 100644
--- a/boundingBox.go
+++ b/boundingBox.go
@@ -2,26 +2,10 @@ package structs
 
 // BoundingBox is a struct defining the spatial outreach of a box
 type BoundingBox struct {
-	center Vec2    // Center of the box
-	width  float64 // width of the box
+	Center Vec2    // Center of the box
+	Width  float64 // Width of the box
 }
 
-func (b *BoundingBox) Width() float64 {
-	return b.width
-}
-
-func (b *BoundingBox) SetWidth(width float64) {
-	b.width = width
-}
-
-func (b *BoundingBox) Center() Vec2 {
-	return b.center
-}
-
-func (b *BoundingBox) SetCenter(center Vec2) {
-	b.center = center
-}
-
-func NewBoundingBox(center Vec2, halfDim float64) *BoundingBox {
-	return &BoundingBox{center: center, width: halfDim}
+func NewBoundingBox(center Vec2, width float64) *BoundingBox {
+	return &BoundingBox{Center: center, Width: width}
 }