コード例 #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())
}