TopDown Engine  v4.2
MoreMountains.Tools.MMInterval< T > Struct Template Reference

Public Member Functions

 MMInterval (T lowerBound, T upperBound, MMIntervalType lowerboundIntervalType=MMIntervalType.Inclusive, MMIntervalType upperboundIntervalType=MMIntervalType.Inclusive)
 Creates an interval with the specified bounds More...
 
bool Contains (T value)
 Returns true if the interval contains the specified value More...
 

Public Attributes

LowerBound
 the lower bound of this interval More...
 
UpperBound
 the upper bound of this interval More...
 
MMIntervalType LowerBoundIntervalType
 whether to include or exclude the lower bound in the interval More...
 
MMIntervalType UpperBoundIntervalType
 whether to include or exclude the upper bound in the interval More...
 

Constructor & Destructor Documentation

◆ MMInterval()

MoreMountains.Tools.MMInterval< T >.MMInterval ( lowerBound,
upperBound,
MMIntervalType  lowerboundIntervalType = MMIntervalType.Inclusive,
MMIntervalType  upperboundIntervalType = MMIntervalType.Inclusive 
)

Creates an interval with the specified bounds

Parameters
lowerBound
upperBound
lowerboundIntervalType
upperboundIntervalType

Member Function Documentation

◆ Contains()

bool MoreMountains.Tools.MMInterval< T >.Contains ( value)

Returns true if the interval contains the specified value

Parameters
value
Returns

Member Data Documentation

◆ LowerBound

T MoreMountains.Tools.MMInterval< T >.LowerBound

the lower bound of this interval

◆ LowerBoundIntervalType

MMIntervalType MoreMountains.Tools.MMInterval< T >.LowerBoundIntervalType

whether to include or exclude the lower bound in the interval

◆ UpperBound

T MoreMountains.Tools.MMInterval< T >.UpperBound

the upper bound of this interval

◆ UpperBoundIntervalType

MMIntervalType MoreMountains.Tools.MMInterval< T >.UpperBoundIntervalType

whether to include or exclude the upper bound in the interval


The documentation for this struct was generated from the following file: