Interval.hpp File Reference
#include <PlayRho/Common/BoundedValue.hpp>
#include <algorithm>
#include <limits>
#include <iostream>

Go to the source code of this file.

Classes

class  playrho::Interval< T >
 Interval template type. More...
 

Namespaces

 playrho
 

Functions

template<typename T >
PLAYRHO_CONSTEXPRplayrho::GetSize (const Interval< T > &v) noexcept
 Gets the size of the given interval. More...
 
template<typename T >
PLAYRHO_CONSTEXPRplayrho::GetCenter (const Interval< T > &v) noexcept
 Gets the center of the given interval. More...
 
template<typename T >
PLAYRHO_CONSTEXPR bool playrho::IsIntersecting (const Interval< T > &a, const Interval< T > &b) noexcept
 Checks whether two value ranges have any intersection/overlap at all. More...
 
template<typename T >
PLAYRHO_CONSTEXPR Interval< T > playrho::GetIntersection (Interval< T > a, const Interval< T > &b) noexcept
 Gets the intersecting interval of two given ranges. More...
 
template<typename T >
PLAYRHO_CONSTEXPR bool playrho::IsEntirelyBefore (const Interval< T > &a, const Interval< T > &b)
 Determines whether the first range is entirely before the second range. More...
 
template<typename T >
PLAYRHO_CONSTEXPR bool playrho::IsEntirelyAfter (const Interval< T > &a, const Interval< T > &b)
 Determines whether the first range is entirely after the second range. More...
 
template<typename T >
PLAYRHO_CONSTEXPR bool playrho::IsEntirelyEnclosing (const Interval< T > &a, const Interval< T > &b)
 Determines whether the first range entirely encloses the second. More...
 
template<typename T >
PLAYRHO_CONSTEXPR bool playrho::operator== (const Interval< T > &a, const Interval< T > &b) noexcept
 Equality operator. More...
 
template<typename T >
PLAYRHO_CONSTEXPR bool playrho::operator!= (const Interval< T > &a, const Interval< T > &b) noexcept
 Inequality operator. More...
 
template<typename T >
PLAYRHO_CONSTEXPR bool playrho::operator< (const Interval< T > &lhs, const Interval< T > &rhs) noexcept
 Less-than operator. More...
 
template<typename T >
PLAYRHO_CONSTEXPR bool playrho::operator<= (const Interval< T > &lhs, const Interval< T > &rhs) noexcept
 Less-than or equal-to operator. More...
 
template<typename T >
PLAYRHO_CONSTEXPR bool playrho::operator> (const Interval< T > &lhs, const Interval< T > &rhs) noexcept
 Greater-than operator. More...
 
template<typename T >
PLAYRHO_CONSTEXPR bool playrho::operator>= (const Interval< T > &lhs, const Interval< T > &rhs) noexcept
 Greater-than or equal-to operator. More...
 
template<typename T >
::std::ostream & playrho::operator<< (::std::ostream &os, const Interval< T > &value)
 Output stream operator. More...