public bool Contains(BasicSphere s)
 {
     float sqSep = Primitives.DistanceSquared(s.center, center);
     return (sqSep + s.radius * s.radius) <= radius * radius;
 }
Example #2
0
 public bool SphereOverlap(BasicSphere S)
 {
     return(Primitives.DistanceSquared(center, S.center) <
            Primitives.Square(radius + S.radius));
 }
 public bool SphereOverlap(BasicSphere S)
 {
     return Primitives.DistanceSquared(center, S.center) <
         Primitives.Square(radius + S.radius);
 }
Example #4
0
        public bool Contains(BasicSphere s)
        {
            float sqSep = Primitives.DistanceSquared(s.center, center);

            return((sqSep + s.radius * s.radius) <= radius * radius);
        }