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