Example #1
0
func (s sphere) Contains(b gfx.Boundable) bool {
	return b.Bounds().InSphere(math.Sphere(s))
}
Example #2
0
func (s sphere) Intersects(b gfx.Boundable) bool {
	return math.Sphere(s).OverlapsRect3(b.Bounds())
}