public bool Intersects(BoundingCircle circle)
        {
            bool result;

            circle.Intersects(ref this, out result);
            return(result);
        }
Beispiel #2
0
        public Scalar Intersects(BoundingCircle circle)
        {
            Scalar result;

            circle.Intersects(ref this, out result);
            return(result);
        }
 public void Contains(ref BoundingCircle circle, out ContainmentType result)
 {
     if ((circle.Position.X + circle.Radius) <= Max.X &&
         (circle.Position.X - circle.Radius) >= Min.X &&
         (circle.Position.Y + circle.Radius) <= Max.Y &&
         (circle.Position.Y - circle.Radius) >= Min.Y)
     {
         result = ContainmentType.Contains;
     }
     else
     {
         bool intersects;
         circle.Intersects(ref this, out intersects);
         if (intersects)
         {
             result = ContainmentType.Intersects;
         }
         else
         {
             result = ContainmentType.Disjoint;
         }
     }
 }
 public ContainmentType Contains(BoundingCircle circle)
 {
     if ((circle.Position.X + circle.Radius) <= Max.X &&
         (circle.Position.X - circle.Radius) >= Min.X &&
         (circle.Position.Y + circle.Radius) <= Max.Y &&
         (circle.Position.Y - circle.Radius) >= Min.Y)
     {
         return(ContainmentType.Contains);
     }
     else
     {
         bool intersects;
         circle.Intersects(ref this, out intersects);
         if (intersects)
         {
             return(ContainmentType.Intersects);
         }
         else
         {
             return(ContainmentType.Disjoint);
         }
     }
 }
 public void Intersects(ref BoundingCircle circle, out bool result)
 {
     circle.Intersects(ref this, out result);
 }