public bool IntersectsWith(Shape shape) { var result = GetShapeBounds().IntersectsWith(shape.GetShapeBounds()); if (result) { var args = new ShapesKickedEventArgs(this, shape); OnShapesKicked(args); } return(result); }
internal void OnShapesKicked(ShapesKickedEventArgs e) { var temp = Volatile.Read(ref ShapesKicked); temp?.Invoke(this, e); }