Beispiel #1
0
 /// <summary>Calculates the intersection of two rectangles.</summary>
 /// <param name="a">The first rectangle.</param>
 /// <param name="b">The second rectangle.</param>
 /// <returns>A rectangle representing the intersection, or null if they do not intersect.</returns>
 public static XnaRectangle?Intersection(this XnaRectangle a, XnaRectangle b) => a.ToXTileRectangle().Intersection(b.ToXTileRectangle())?.ToXnaRectangle();