type Box … func (a *Box) x() float64 { … } func (a *Box) y() float64 { … } func (a *Box) w() float64 { … } func (a *Box) h() float64 { … } func (a *Box) fits(width float64, height float64) bool { … } func (a *Box) overlaps(b *Box) bool { … } func (a *Box) overlapsRaw(top float64, left float64, right float64, bottom float64) bool { … } func (a *Box) String() string { … }