Show / Hide Table of Contents

Class MonoRectangleExtensions

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

Inheritance
object
MonoRectangleExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Microsoft.Xna.Framework
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
Type Description
bool

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
Type Description
Rectangle
In this article

Back to top

Back to top Generated by DocFX