Ejemplo n.º 1
0
        public bool Intersects(BoundingCircle circle)
        {
            bool result;

            circle.Intersects(ref this, out result);
            return(result);
        }
Ejemplo n.º 2
0
        public float Intersects(BoundingCircle circle)
        {
            float result;

            circle.Intersects(ref this, out result);
            return(result);
        }
Ejemplo n.º 3
0
 public void Contains(ref BoundingCircle circle, out Containment result)
 {
     if ((circle.Center.X + circle.Radius) <= Max.X &&
         (circle.Center.X - circle.Radius) >= Min.X &&
         (circle.Center.Y + circle.Radius) <= Max.Y &&
         (circle.Center.Y - circle.Radius) >= Min.Y)
     {
         result = Containment.Contains;
     }
     else
     {
         bool intersects;
         circle.Intersects(ref this, out intersects);
         result = intersects ? Containment.Intersects : Containment.Disjoint;
     }
 }
Ejemplo n.º 4
0
 public void Intersects(ref BoundingCircle circle, out bool result)
 {
     circle.Intersects(ref this, out result);
 }