Interface IDiscreteBounds<TCoordinate, TBounds>
- Namespace
- Game.Core.Coordinates
- Assembly
- Game.Core.Coordinates.dll
public interface IDiscreteBounds<TCoordinate, TBounds> : IDiscreteBounds
Type Parameters
TCoordinateTBounds
- Inherited Members
- Extension Methods
Properties
Max
TCoordinate Max { get; }
Property Value
- TCoordinate
Min
TCoordinate Min { get; }
Property Value
- TCoordinate
Methods
Add(TCoordinate)
TBounds Add(TCoordinate addition)
Parameters
additionTCoordinate
Returns
- TBounds
Combine(TBounds)
TBounds Combine(TBounds other)
Parameters
otherTBounds
Returns
- TBounds
ComputeTilesInVolumeInclusive(ICollection<TCoordinate>)
void ComputeTilesInVolumeInclusive(ICollection<TCoordinate> tilesInAreaInclusive)
Parameters
tilesInAreaInclusiveICollection<TCoordinate>
DoIntersect(TBounds)
bool DoIntersect(TBounds other)
Parameters
otherTBounds
Returns
- bool
Includes(TCoordinate)
bool Includes(TCoordinate c)
Parameters
cTCoordinate
Returns
- bool
TryIntersect(TBounds, out TBounds)
bool TryIntersect(TBounds other, out TBounds intersection)
Parameters
otherTBoundsintersectionTBounds
Returns
- bool
WithMax(TCoordinate)
TBounds WithMax(TCoordinate max)
Parameters
maxTCoordinate
Returns
- TBounds
WithMin(TCoordinate)
TBounds WithMin(TCoordinate min)
Parameters
minTCoordinate
Returns
- TBounds