Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CInterval Class Reference

A class for managing an interval [a, b] between 2 numbers. More...

#include <Interval.h>

List of all members.

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 CIntervaloperator= (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.


Detailed Description

A class for managing an interval [a, b] between 2 numbers.

---------------------------------------------------------------------------


Constructor & Destructor Documentation

CInterval::CInterval void   ) 
 

Constructor.

--------------------------------------------------------------------------
CInterval::CInterval

---------------------------------------------------------------------------

CInterval::~CInterval void   ) 
 

Destructor.

--------------------------------------------------------------------------
CInterval::CInterval

---------------------------------------------------------------------------


Member Function Documentation

bool CInterval::Contains const CInterval Other  )  const
 

True if this contains the other.

--------------------------------------------------------------------------
CInterval::Contains

---------------------------------------------------------------------------

bool CInterval::Contains double  dValue  )  const
 

True if this contains the value.

--------------------------------------------------------------------------
CInterval::Contains

---------------------------------------------------------------------------

void CInterval::ExpandToInclude double  dValue  ) 
 

Expands the interval to include the value.

--------------------------------------------------------------------------
CInterval::ExpandToInclude

---------------------------------------------------------------------------

void CInterval::ExpandToInclude CInterval Other  ) 
 

Expands the interval to include the other.

--------------------------------------------------------------------------
CInterval::ExpandToInclude

---------------------------------------------------------------------------

bool CInterval::IsAbove const CInterval Other  )  const
 

True if this is entirely above the other.

--------------------------------------------------------------------------
CInterval::IsAbove

---------------------------------------------------------------------------

bool CInterval::IsBelow const CInterval Other  )  const
 

True if this is entirely below the other.

--------------------------------------------------------------------------
CInterval::IsBelow

---------------------------------------------------------------------------

const CInterval & CInterval::operator= const CInterval Other  ) 
 

Assignement.

--------------------------------------------------------------------------
CInterval::operator=

---------------------------------------------------------------------------

bool CInterval::Overlaps const CInterval Other  )  const
 

True if this overlaps the other.

--------------------------------------------------------------------------
CInterval::Overlaps

---------------------------------------------------------------------------


The documentation for this class was generated from the following files:
Generated on Mon Apr 21 11:43:52 2008 for GeoLib by  doxygen 1.4.4