Class MonoRectangleExtensions
Extension methods for Microsoft.Xna.Framework.Rectangle that enable operations involving
Rectangle.
Inheritance
MonoRectangleExtensions
Assembly: SadConsole.Host.MonoGame.dll
Syntax
public static class MonoRectangleExtensions
Methods
Matches(Rectangle, Rectangle)
Compares a Microsoft.Xna.Framework.Rectangle to a Rectangle.
Declaration
public static bool Matches(this Rectangle self, Rectangle other)
Parameters
Type |
Name |
Description |
Rectangle |
self |
|
Rectangle |
other |
|
Returns
ToRectangle(Rectangle)
Converts from Microsoft.Xna.Framework.Rectangle to Rectangle.
Declaration
public static Rectangle ToRectangle(this Rectangle self)
Parameters
Type |
Name |
Description |
Rectangle |
self |
|
Returns