KrisLibrary  1.0.0
Public Member Functions | List of all members
Math::ClosedInterval Struct Reference

A closed interval [a,b]. More...

#include <Interval.h>

Inheritance diagram for Math::ClosedInterval:
Math::Interval

Public Member Functions

 ClosedInterval (Real a, Real b)
 
void setIntersection (const ClosedInterval &i, const ClosedInterval &j)
 
void setUnion (const ClosedInterval &i, const ClosedInterval &j)
 
void expand (Real x)
 
bool isEmpty () const
 
bool contains (Real x) const
 
bool contains (const Interval &) const
 
bool intersects (const ClosedInterval &) const
 
bool intersects (const OpenInterval &) const
 
- Public Member Functions inherited from Math::Interval
 Interval (Real a, Real b)
 
void set (Real a, Real b)
 
void setFull ()
 
void setEmpty ()
 
bool isFull () const
 

Additional Inherited Members

- Public Attributes inherited from Math::Interval
Real a
 
Real b
 

Detailed Description

A closed interval [a,b].


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