Ejemplo n.º 1
0
 public ActionEventArgs(MovingObject caller, FRect queryRect)
     : base(EventType.Action)
 {
     this.caller = caller;
     this.queryRect = queryRect;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Checks if this rectangle intersects another rectangle
 /// </summary>
 /// <param name="Rect">The rectangle to check</param>
 /// <returns>Whether or not this rectangle intersects the other</returns>
 public bool Intersects(FRect Rect)
 {
     return (!( Bottom < Rect.Top ||
                Top > Rect.Bottom ||
                Right < Rect.Left ||
                Left > Rect.Right ));
 }