Skip to content

MonoRectangleExtensions Class

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

C#
public static class MonoRectangleExtensions

Inheritance object

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

C#
public static Rectangle ToRectangle(this Rectangle self)

self Microsoft.Xna.Framework.Rectangle

SadRogue.Primitives.Rectangle

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

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

self Microsoft.Xna.Framework.Rectangle

other SadRogue.Primitives.Rectangle

bool