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 }