This project has moved. For the latest updates, please go here.
1
Vote

Interval functionality

description

Please, methods imply such method:

Contains(double x, IntervalBraces braces)
{
switch (braces)
{
case.IncludeNone: return ((x > a) && (x < b));
case.IncludeLeft: return ((x >= a) && (x < b));
case.IncludeRight: return ((x > a) && (x =< b));
case.IncludeBoth: return ((x >= a) && (x =< b));
}
}

enum IntervalBraces
{ IncludeNone, IncludeLeft, IncludeRight, IncludeBoth }

comments