Table of Contents

Class GridRect

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Represents an axis-aligned rectangle. This is the discrete version of U:Rect.

[Serializable]
public class GridRect : AbstractBounds<GridPoint2>, IExplicitShape<GridPoint2>, IImplicitShape<GridPoint2>
Inheritance
GridRect
Implements
Inherited Members
Extension Methods

Constructors

GridRect(GridPoint2, GridPoint2)

Properties

Extreme

Gets the extreme point of this AbstractBounds<TPoint>, lying on the opposite direction of Point. For discrete point types, this points fall just outside the bounds.

Points

Gets all the points that this bounds contains.

Methods

Contains(GridPoint2)

Determines whether this bounds contains the specified point.

Dilate(AbstractBounds<GridPoint2>)
Erode(AbstractBounds<GridPoint2>)
Intersection(AbstractBounds<GridPoint2>, AbstractBounds<GridPoint2>)
Translate(AbstractBounds<GridPoint2>, GridPoint2)
UnionBoundingBox(AbstractBounds<GridPoint2>, AbstractBounds<GridPoint2>)