about summary refs log tree commit diff
path: root/structs/structs.go
blob: 6f1dd571dade34c429544c5fc0eacbd8ea9eea8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}