Table of Contents

Class AbstractBounds<TPoint>

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Represents a axis-aligned bounding space. Concrete implementations for 1D (GridInterval), 2D (GridRect) and 3D (GridRect) is provided.

public abstract class AbstractBounds<TPoint> : IExplicitShape<TPoint>, IImplicitShape<TPoint>

Type Parameters

TPoint

The point type of the bounds.

Inheritance
AbstractBounds<TPoint>
Implements
Derived
Inherited Members
Extension Methods

Constructors

AbstractBounds(TPoint, TPoint)

Initializes a new instance of the AbstractBounds<TPoint> class.

Properties

Bounds

The bounds of a bounds object is itself.

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.

Point

Gets the point which indicates where this AbstractBounds<TPoint> is located.

Points

Gets all the points that this bounds contains.

Size

Gets the size of this AbstractBounds<TPoint>.

Methods

Contains(TPoint)

Determines whether this bounds contains the specified point.