protected virtual bool IntersectsSphere(BoundingSphere boundingSphere) { //if (Center.DistanceTo(boundingSphere.Center) < (_size / 2 + boundingSphere.Radius)) // return true; return false; }
private bool EnclosesSphere(BoundingSphere boundingSphere) { float distance = _center.DistanceTo(boundingSphere.Center); return distance < _radius && (_radius - distance) > boundingSphere.Radius; }
private bool IntersectsSphere(BoundingSphere boundingSphere) { return _center.DistanceTo(boundingSphere.Center) < (_radius + boundingSphere.Radius); }
protected override bool IntersectsSphere(BoundingSphere boundingSphere) { return DoesCubeIntersectSphere(_min, _max, boundingSphere.Center, boundingSphere.Radius); }