示例#1
0
文件: rect.go 项目: pombredanne/rand
func (c rect) Contains(b gfx.Boundable) bool {
	return b.Bounds().In(math.Rect3(c))
}
示例#2
0
文件: mesh.go 项目: pombredanne/rand
// Bounds implements the Spatial interface.
func (b Bounds) Bounds() math.Rect3 {
	return math.Rect3(b)
}
示例#3
0
文件: rect.go 项目: pombredanne/rand
func (c rect) Intersects(b gfx.Boundable) bool {
	return math.Rect3(c).Overlaps(b.Bounds())
}