mt
 All Classes Files Functions Enumerations Groups Pages
Classes | Functions
interval.h File Reference
#include <iostream>
#include <utility>
#include <mt/scalar.h>

Go to the source code of this file.

Classes

class  mt::Interval
 One-dimensional closed interval class. More...

Functions

Interval mt::operator+ (const Scalar &s, const Interval &in)
Interval mt::operator+ (const Interval &in1, const Interval &in2)
Interval mt::operator- (const Scalar &s, const Interval &in)
Interval mt::operator- (const Interval &in1, const Interval &in2)
std::ostream & mt::operator<< (std::ostream &os, const Interval &in)
bool mt::isOverlap (const Interval &in1, const Interval &in2)
 Tests if intervals overlap.
bool mt::isContained (const Scalar &s, const Interval &in)
 Tests if scalar s is contained in interval in.
bool mt::isContained (const Interval &in1, const Interval &in2)
 Tests if interval in1 is contained in interval in2.
Interval mt::widen (const Interval &in, const Scalar &s)
 Returns interval in widened by 2 s (s at each endpoint).
Interval mt::hull (const Interval &in1, const Interval &in2)
 Computes the hull of the input intervals.

Detailed Description