#include <Interval.h>
Public Member Functions | |
CInterval (void) | |
Constructor. | |
~CInterval (void) | |
Destructor. | |
void | ExpandToInclude (CInterval &Other) |
Expands the interval to include the other. | |
void | ExpandToInclude (double dValue) |
Expands the interval to include the value. | |
double | GetLength (void) const |
Returns the distance between the min and the max. | |
const CInterval & | operator= (const CInterval &Other) |
Assignement. | |
bool | Overlaps (const CInterval &Other) const |
True if this overlaps the other. | |
bool | Contains (double dValue) const |
True if this contains the value. | |
bool | Contains (const CInterval &Other) const |
True if this contains the other. | |
bool | IsAbove (const CInterval &Other) const |
True if this is entirely above the other. | |
bool | IsBelow (const CInterval &Other) const |
True if this is entirely below the other. | |
Public Attributes | |
double | dMin |
The min. | |
double | dMax |
The max. |
---------------------------------------------------------------------------
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Destructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
True if this contains the other.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
True if this contains the value.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Expands the interval to include the value.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Expands the interval to include the other.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
True if this is entirely above the other.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
True if this is entirely below the other.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Assignement.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
True if this overlaps the other.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |