blob: 6cf60c47201a12d60849de4f2f163ea62b5788d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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
}
func NewBoundingBox(center Vec2, width float64) BoundingBox {
return BoundingBox{Center: center, Width: width}
}
|