Rebel Fork Framework
Urho3D::NumericRange< T > Struct Template Reference

Numerical range (pair of min and max value). Invalid if flipped. More...

#include <Urho3D/Math/NumericRange.h>

Inheritance diagram for Urho3D::NumericRange< T >:

Public Member Functions

 NumericRange ()
 Construct invalid.
 
 NumericRange (const T &minValue, const T &maxValue)
 Construct valid.
 
bool IsValid () const
 Return whether the range is valid.
 
bool Intersect (const NumericRange &rhs) const
 Return whether the range intersects another.
 
bool ContainsInclusive (const T &value) const
 Return whether the range contains a value (including borders).
 
bool ContainsExclusive (const T &value) const
 Return whether the range contains a value (excluding borders).
 
NumericRange< T > & operator|= (const NumericRange &rhs)
 Accumulate range.
 
NumericRange< T > operator| (const NumericRange &rhs) const
 Accumulate range.
 
NumericRange< T > & operator&= (const NumericRange &rhs)
 Trim range.
 
NumericRange< T > operator& (const NumericRange &rhs) const
 Trim range.
 

Detailed Description

template<class T>
struct Urho3D::NumericRange< T >

Numerical range (pair of min and max value). Invalid if flipped.


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