Skip to content

SadRogueRectangleExtensions Class

Extension methods for SadRogue.Primitives.Rectangle that enable operations involving Microsoft.Xna.Framework.Rectangle.

C#
public static class SadRogueRectangleExtensions

Inheritance object

Converts from SadRogue.Primitives.Rectangle to Microsoft.Xna.Framework.Rectangle.

C#
public static Rectangle ToMonoRectangle(this Rectangle self)

self SadRogue.Primitives.Rectangle

Microsoft.Xna.Framework.Rectangle

Compares a SadRogue.Primitives.Rectangle to a Microsoft.Xna.Framework.Rectangle.

C#
public static bool Matches(this Rectangle self, Rectangle other)

self SadRogue.Primitives.Rectangle

other Microsoft.Xna.Framework.Rectangle

bool