public bool Contains(BasicSphere s)
 {
     float sqSep = Primitives.DistanceSquared(s.center, center);
     return (sqSep + s.radius * s.radius) <= radius * radius;
 }
Exemple #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);
 }
Exemple #4
0
        public bool Contains(BasicSphere s)
        {
            float sqSep = Primitives.DistanceSquared(s.center, center);

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