|
AGX Dynamics 2.42.3.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. | |
| BoundT (const BoundT &other) | |
| BoundT (const T &min, const T &max) | |
| BoundT | calculateOverlap (const BoundT &other) const |
| bool | contains (const T &value) const |
| bool | hasOverlap (const BoundT &other) const |
| bool | isValid () const |
| T & | max () |
| const T & | max () const |
| T | mid () const |
| T & | min () |
| const T & | min () const |
| template<typename T2 > | |
| operator BoundT< T2 > () const | |
| Convert the bound to a bound with a different underlying type. | |
| 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. | |
| 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. | |
| 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. | |
| T | size () const |
| BoundT | translate (const T &offset) const |
| Move the bound's midpoint without altering its size. | |
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 |
Definition at line 306 of file Bound.h.
References agx::BoundT< T >::m_max, and agx::BoundT< T >::m_min.
| bool agx::BoundT< T >::contains | ( | const T & | value | ) | const |
| bool agx::BoundT< T >::hasOverlap | ( | const BoundT< T > & | other | ) | const |
| bool agx::BoundT< T >::isValid |
| T & agx::BoundT< T >::max |
| const T & agx::BoundT< T >::max |
Definition at line 255 of file Bound.h.
Referenced by agxCollide::Plane::calculateBound(), agxCollide::Line::calculateBound(), agxCollide::BoundingAABB::expand(), agxCollide::operator<<(), agx::operator<<(), and agxTerrain::VoxelGridUtils::transformBound().
| T agx::BoundT< T >::mid |
| T & agx::BoundT< T >::min |
| const T & agx::BoundT< T >::min |
Definition at line 252 of file Bound.h.
Referenced by agxCollide::Plane::calculateBound(), agxCollide::Line::calculateBound(), agxCollide::BoundingAABB::expand(), agxCollide::operator<<(), agx::operator<<(), and agxTerrain::VoxelGridUtils::transformBound().
| bool agx::BoundT< T >::operator!= | ( | const BoundT< T > & | other | ) | const |
Definition at line 341 of file Bound.h.
References agx::BoundT< T >::m_max, and agx::BoundT< T >::m_min.
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 | ) |
Definition at line 332 of file Bound.h.
References agx::BoundT< T >::m_max, and agx::BoundT< T >::m_min.
| bool agx::BoundT< T >::operator== | ( | const BoundT< T > & | other | ) | const |
Definition at line 325 of file Bound.h.
References agx::BoundT< T >::m_max, and agx::BoundT< T >::m_min.
| void agx::BoundT< T >::set | ( | const T & | min, |
| const T & | max | ||
| ) |
Relocate the bound to the new location.
Definition at line 264 of file Bound.h.
References agx::max(), and agx::min().
| T agx::BoundT< T >::size |
| BoundT< T > agx::BoundT< T >::translate | ( | const T & | offset | ) | const |
|
protected |
Definition at line 120 of file Bound.h.
Referenced by agx::BoundT< T >::calculateOverlap(), agx::BoundT< T >::operator!=(), agx::BoundT< T >::operator=(), and agx::BoundT< T >::operator==().
|
protected |
Definition at line 119 of file Bound.h.
Referenced by agx::BoundT< T >::calculateOverlap(), agx::BoundT< T >::operator!=(), agx::BoundT< T >::operator=(), and agx::BoundT< T >::operator==().