Beispiel #1
0
        public virtual bool Intersects(IShape shape)
        {
            switch (shape.Type)
            {
            case ShapeType.Everywhere:
                return(Intersect.EverywhereToShape((Everywhere)shape, this));

            case ShapeType.Bottom:
                return(Intersect.BottomToShape((Bottom)shape, this));

            case ShapeType.Top:
                return(Intersect.TopToShape((Top)shape, this));

            case ShapeType.Circle:
                return(Intersect.CircleToRectangle((Circle)shape, this));

            case ShapeType.Rectangle:
                return(Intersect.RectangleToRectangle((Rectangle)shape, this));

            default:
                return(false);
            }
        }
Beispiel #2
0
 public bool Intersects(IShape shape)
 {
     return(Intersect.BottomToShape(this, shape));
 }
Beispiel #3
0
 public bool Intersects(IShape shape)
 {
     return(Intersect.EverywhereToShape(this, shape));
 }