Example #1
0
File: Shape.cs Project: SNest/FS
        public bool IntersectsWith(Shape shape)
        {
            var result = GetShapeBounds().IntersectsWith(shape.GetShapeBounds());

            if (result)
            {
                var args = new ShapesKickedEventArgs(this, shape);
                OnShapesKicked(args);
            }

            return(result);
        }
Example #2
0
File: Shape.cs Project: SNest/FS
        internal void OnShapesKicked(ShapesKickedEventArgs e)
        {
            var temp = Volatile.Read(ref ShapesKicked);

            temp?.Invoke(this, e);
        }