HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_IntervalT< T > Class Template Reference

#include <UT_Interval.h>

+ Inheritance diagram for UT_IntervalT< T >:

Public Types

typedef T value_type
 
typedef UT_IntervalT< Tthis_type
 

Public Member Functions

 UT_IntervalT (T a=0)
 
 UT_IntervalT (T a, T b, bool order=false)
 
UT_IntervalToperator+= (const UT_IntervalT &rhs)
 
UT_IntervalToperator-= (const UT_IntervalT &rhs)
 
UT_IntervalToperator*= (const UT_IntervalT &rhs)
 
UT_IntervalToperator/= (const UT_IntervalT &rhs)
 
UT_IntervalToperator|= (const UT_IntervalT &rhs)
 
UT_IntervalToperator&= (const UT_IntervalT &rhs)
 
UT_IntervalToperator+= (T rhs)
 
UT_IntervalToperator-= (T rhs)
 
UT_IntervalToperator*= (T rhs)
 
bool operator== (const UT_IntervalT &rhs) const
 
bool operator!= (const UT_IntervalT &rhs) const
 
void assign (T Min, T Max, bool order_them=false)
 
void extendToContain (T a)
 
void minWith (const UT_IntervalT &rhs)
 
void maxWith (const UT_IntervalT &rhs)
 
void order ()
 
T closest (T val) const
 
T closest (T val, T wrap) const
 
T avg () const
 
T delta () const
 
void square ()
 
UT_IntervalT sqr () const
 
UT_IntervalT abs () const
 
UT_IntervalT pow (T arg) const
 
bool contains (T arg) const
 
bool intersects (const UT_IntervalT &arg) const
 
int isValid (T tol=0.f) const
 
void display () const
 
int equalZero (T tol=0.00001f) const
 
int isEqual (const UT_IntervalT &v, T tol=0.00001f) const
 
void clampZero (T tol=0.00001f)
 
void negate ()
 
void invert (UT_IntervalT &v) const
 
void invert ()
 

Public Attributes

T min
 
T max
 
SYS_HashType hash () const
 
std::size_t hash_value (const this_type &t)
 

Detailed Description

template<typename T>
class UT_IntervalT< T >

Definition at line 22 of file UT_Interval.h.

Member Typedef Documentation

template<typename T>
typedef UT_IntervalT<T> UT_IntervalT< T >::this_type

Definition at line 26 of file UT_Interval.h.

template<typename T>
typedef T UT_IntervalT< T >::value_type

Definition at line 25 of file UT_Interval.h.

Constructor & Destructor Documentation

template<typename T>
UT_IntervalT< T >::UT_IntervalT ( T  a = 0)
explicit

Definition at line 161 of file UT_Interval.h.

template<typename T>
UT_IntervalT< T >::UT_IntervalT ( T  a,
T  b,
bool  order = false 
)

Definition at line 168 of file UT_Interval.h.

Member Function Documentation

template<typename T >
UT_IntervalT< T > UT_IntervalT< T >::abs ( ) const

Definition at line 370 of file UT_Interval.h.

template<typename T>
void UT_IntervalT< T >::assign ( T  Min,
T  Max,
bool  order_them = false 
)
inline

Definition at line 43 of file UT_Interval.h.

template<typename T>
T UT_IntervalT< T >::avg ( ) const
inline

Definition at line 60 of file UT_Interval.h.

template<typename T>
void UT_IntervalT< T >::clampZero ( T  tol = 0.00001f)
inline

Definition at line 84 of file UT_Interval.h.

template<typename T>
T UT_IntervalT< T >::closest ( T  val) const

Definition at line 394 of file UT_Interval.h.

template<typename T>
T UT_IntervalT< T >::closest ( T  val,
T  wrap 
) const

Definition at line 409 of file UT_Interval.h.

template<typename T>
bool UT_IntervalT< T >::contains ( T  arg) const

Definition at line 446 of file UT_Interval.h.

template<typename T>
T UT_IntervalT< T >::delta ( ) const
inline

Definition at line 61 of file UT_Interval.h.

template<typename T >
void UT_IntervalT< T >::display ( ) const

Definition at line 641 of file UT_Interval.h.

template<typename T>
int UT_IntervalT< T >::equalZero ( T  tol = 0.00001f) const
inline

Definition at line 73 of file UT_Interval.h.

template<typename T>
void UT_IntervalT< T >::extendToContain ( T  a)

Definition at line 282 of file UT_Interval.h.

template<typename T>
SYS_HashType UT_IntervalT< T >::hash ( ) const
inline

Compute a hash

Definition at line 121 of file UT_Interval.h.

template<typename T >
bool UT_IntervalT< T >::intersects ( const UT_IntervalT< T > &  arg) const

Definition at line 453 of file UT_Interval.h.

template<typename T>
void UT_IntervalT< T >::invert ( UT_IntervalT< T > &  v) const
inline

Definition at line 96 of file UT_Interval.h.

template<typename T>
void UT_IntervalT< T >::invert ( )
inline

Definition at line 109 of file UT_Interval.h.

template<typename T>
int UT_IntervalT< T >::isEqual ( const UT_IntervalT< T > &  v,
T  tol = 0.00001f 
) const
inline

Definition at line 78 of file UT_Interval.h.

template<typename T>
int UT_IntervalT< T >::isValid ( T  tol = 0.f) const

Definition at line 466 of file UT_Interval.h.

template<typename T >
void UT_IntervalT< T >::maxWith ( const UT_IntervalT< T > &  rhs)

Definition at line 274 of file UT_Interval.h.

template<typename T >
void UT_IntervalT< T >::minWith ( const UT_IntervalT< T > &  rhs)

Definition at line 292 of file UT_Interval.h.

template<typename T>
void UT_IntervalT< T >::negate ( )
inline

Definition at line 90 of file UT_Interval.h.

template<typename T >
bool UT_IntervalT< T >::operator!= ( const UT_IntervalT< T > &  rhs) const

Definition at line 266 of file UT_Interval.h.

template<typename T >
UT_IntervalT< T > & UT_IntervalT< T >::operator&= ( const UT_IntervalT< T > &  rhs)

Definition at line 309 of file UT_Interval.h.

template<typename T >
UT_IntervalT< T > & UT_IntervalT< T >::operator*= ( const UT_IntervalT< T > &  rhs)

Definition at line 219 of file UT_Interval.h.

template<typename T>
UT_IntervalT< T > & UT_IntervalT< T >::operator*= ( T  rhs)

Definition at line 252 of file UT_Interval.h.

template<typename T >
UT_IntervalT< T > & UT_IntervalT< T >::operator+= ( const UT_IntervalT< T > &  rhs)

Definition at line 182 of file UT_Interval.h.

template<typename T>
UT_IntervalT< T > & UT_IntervalT< T >::operator+= ( T  rhs)

Definition at line 191 of file UT_Interval.h.

template<typename T >
UT_IntervalT< T > & UT_IntervalT< T >::operator-= ( const UT_IntervalT< T > &  rhs)

Definition at line 200 of file UT_Interval.h.

template<typename T>
UT_IntervalT< T > & UT_IntervalT< T >::operator-= ( T  rhs)

Definition at line 210 of file UT_Interval.h.

template<typename T >
UT_IntervalT< T > & UT_IntervalT< T >::operator/= ( const UT_IntervalT< T > &  rhs)

Definition at line 240 of file UT_Interval.h.

template<typename T >
bool UT_IntervalT< T >::operator== ( const UT_IntervalT< T > &  rhs) const

Definition at line 260 of file UT_Interval.h.

template<typename T >
UT_IntervalT< T > & UT_IntervalT< T >::operator|= ( const UT_IntervalT< T > &  rhs)

Definition at line 300 of file UT_Interval.h.

template<typename T >
void UT_IntervalT< T >::order ( )

Definition at line 473 of file UT_Interval.h.

template<typename T>
UT_IntervalT< T > UT_IntervalT< T >::pow ( T  arg) const

Definition at line 386 of file UT_Interval.h.

template<typename T >
UT_IntervalT< T > UT_IntervalT< T >::sqr ( ) const

Definition at line 319 of file UT_Interval.h.

template<typename T >
void UT_IntervalT< T >::square ( )

Definition at line 344 of file UT_Interval.h.

Friends And Related Function Documentation

template<typename T>
std::size_t hash_value ( const this_type t)
friend

Compute a hash

Definition at line 127 of file UT_Interval.h.

Member Data Documentation

template<typename T>
T UT_IntervalT< T >::max

Definition at line 130 of file UT_Interval.h.

template<typename T>
T UT_IntervalT< T >::min

Definition at line 130 of file UT_Interval.h.


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