Show / Hide Table of Contents

Class SadRogueRectangleExtensions

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

Inheritance
object
SadRogueRectangleExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadRogue.Primitives
Assembly: SadConsole.Host.MonoGame.dll
Syntax
public static class SadRogueRectangleExtensions

Methods

Matches(Rectangle, Rectangle)

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

Declaration
public static bool Matches(this Rectangle self, Rectangle other)
Parameters
Type Name Description
Rectangle self
Rectangle other
Returns
Type Description
bool

ToMonoRectangle(Rectangle)

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

Declaration
public static Rectangle ToMonoRectangle(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