Exemple #1
0
func (c rect) Contains(b gfx.Boundable) bool {
	return b.Bounds().In(math.Rect3(c))
}
Exemple #2
0
// Bounds implements the Spatial interface.
func (b Bounds) Bounds() math.Rect3 {
	return math.Rect3(b)
}
Exemple #3
0
func (c rect) Intersects(b gfx.Boundable) bool {
	return math.Rect3(c).Overlaps(b.Bounds())
}