|
AGX Dynamics
2.37.2.0
|
A BoundT represents a range defined by a minimum and a maximum value. More...
#include <Bound.h>
Public Types | |
| typedef T | Type |
Public Member Functions | |
| BoundT () | |
| Create a bound initialized to the empty range located at the type's default value. More... | |
| BoundT (const T &min, const T &max) | |
| BoundT (const BoundT &other) | |
| BoundT | calculateOverlap (const BoundT &other) const |
| bool | contains (const T &value) const |
| bool | hasOverlap (const BoundT &other) const |
| bool | isValid () const |
| const T & | max () const |
| T & | max () |
| T | mid () const |
| const T & | min () const |
| T & | min () |
| template<typename T2 > | |
| operator BoundT< T2 > () const | |
| Convert the bound to a bound with a different underlying type. More... | |
| bool | operator!= (const BoundT &other) const |
| template<typename T2 > | |
| BoundT | operator* (T2 scale) |
| Create a new bound that has the same midpoint as the current bound, but with a size that is scaled according to the given scale. More... | |
| template<typename T2 > | |
| BoundT< T > | operator* (T2 scale) |
| template<typename T2 > | |
| BoundT & | operator*= (T2 scale) |
| Scale the bound so that is size is changed according to the given scale, but the midpoint remains unchanged. More... | |
| template<typename T2 > | |
| BoundT< T > & | operator*= (T2 scale) |
| BoundT & | operator= (const BoundT &other) |
| bool | operator== (const BoundT &other) const |
| void | set (const T &min, const T &max) |
| Relocate the bound to the new location. More... | |
| T | size () const |
| BoundT | translate (const T &offset) const |
| Move the bound's midpoint without altering its size. More... | |
Protected Attributes | |
| T | m_max |
| T | m_min |
A BoundT represents a range defined by a minimum and a maximum value.
Template specializations are provided for various VecNt types so that axis aligned bounds in space can be represented.
| typedef T agx::BoundT< T >::Type |
| agx::BoundT< T >::BoundT | ( | ) |
| agx::BoundT< T >::BoundT | ( | const T & | min, |
| const T & | max | ||
| ) |
| agx::BoundT< T >::BoundT | ( | const BoundT< T > & | other | ) |
| BoundT< T > agx::BoundT< T >::calculateOverlap | ( | const BoundT< T > & | other | ) | const |
| bool agx::BoundT< T >::contains | ( | const T & | value | ) | const |
| bool agx::BoundT< T >::hasOverlap | ( | const BoundT< T > & | other | ) | const |
| bool agx::BoundT< T >::isValid | ( | ) | const |
| const T & agx::BoundT< T >::max | ( | ) | const |
Definition at line 255 of file Bound.h.
Referenced by agxCollide::Plane::calculateBound(), agxCollide::Line::calculateBound(), agxCollide::BoundingAABB::expand(), and agxCollide::operator<<().
| T & agx::BoundT< T >::max | ( | ) |
| T agx::BoundT< T >::mid | ( | ) | const |
| const T & agx::BoundT< T >::min | ( | ) | const |
Definition at line 252 of file Bound.h.
Referenced by agxCollide::Plane::calculateBound(), agxCollide::Line::calculateBound(), agxCollide::BoundingAABB::expand(), and agxCollide::operator<<().
| T & agx::BoundT< T >::min | ( | ) |
| bool agx::BoundT< T >::operator!= | ( | const BoundT< T > & | other | ) | const |
Create a new bound that has the same midpoint as the current bound, but with a size that is scaled according to the given scale.
Scale the bound so that is size is changed according to the given scale, but the midpoint remains unchanged.
| BoundT< T > & agx::BoundT< T >::operator= | ( | const BoundT< T > & | other | ) |
| bool agx::BoundT< T >::operator== | ( | const BoundT< T > & | other | ) | const |
| void agx::BoundT< T >::set | ( | const T & | min, |
| const T & | max | ||
| ) |
| T agx::BoundT< T >::size | ( | ) | const |
| BoundT< T > agx::BoundT< T >::translate | ( | const T & | offset | ) | const |
|
protected |
Definition at line 120 of file Bound.h.
Referenced by agx::BoundT< UInt >::calculateOverlap(), agx::BoundT< UInt >::operator BoundT< T2 >(), agx::BoundT< UInt >::operator!=(), agx::BoundT< UInt >::operator=(), and agx::BoundT< UInt >::operator==().
|
protected |
Definition at line 119 of file Bound.h.
Referenced by agx::BoundT< UInt >::calculateOverlap(), agx::BoundT< UInt >::operator BoundT< T2 >(), agx::BoundT< UInt >::operator!=(), agx::BoundT< UInt >::operator=(), and agx::BoundT< UInt >::operator==().