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); } }
public bool Intersects(IShape shape) { return(Intersect.TopToShape(this, shape)); }