Beispiel #1
0
        protected virtual bool IntersectsSphere(BoundingSphere boundingSphere)
        {
            //if (Center.DistanceTo(boundingSphere.Center) < (_size / 2 + boundingSphere.Radius))
            //    return true;

            return false;
        }
Beispiel #2
0
        private bool EnclosesSphere(BoundingSphere boundingSphere)
        {
            float distance = _center.DistanceTo(boundingSphere.Center);

            return distance < _radius && (_radius - distance) > boundingSphere.Radius;
        }
Beispiel #3
0
 private bool IntersectsSphere(BoundingSphere boundingSphere)
 {
     return _center.DistanceTo(boundingSphere.Center) < (_radius + boundingSphere.Radius);
 }
Beispiel #4
0
 protected override bool IntersectsSphere(BoundingSphere boundingSphere)
 {
     return DoesCubeIntersectSphere(_min, _max, boundingSphere.Center, boundingSphere.Radius);
 }