|
CbmRoot
|
A volume dimension representation. More...
Public Member Functions | |
| Dimension ()=default | |
| Default constructor. | |
| Dimension (double lo_, double up_) | |
| Constructor. | |
| Dimension & | operator+= (const Dimension &other) |
| Compound assignment of another dimension. | |
| double | Center () const |
| Center of the dimension. | |
| bool | IsValid () const |
| Checks, if the dimension is valid. | |
| bool | HasOverlapWith (const Dimension &other) const |
| Checks, if the dimension has an overlap with another dimension. | |
| double | Size () const |
| Size of the dimension. | |
Public Attributes | |
| double | lo {+std::numeric_limits<double>::max()} |
| Lower bound of the dimension. | |
| double | up {-std::numeric_limits<double>::max()} |
| Upper bound of the dimension. | |
A volume dimension representation.
Definition at line 28 of file GeoVolume.h.
|
default |
Default constructor.
Referenced by HasOverlapWith(), and operator+=().
|
inline |
|
inline |
|
inline |
Checks, if the dimension has an overlap with another dimension.
| other | Other dimension |
Definition at line 54 of file GeoVolume.h.
References Dimension(), lo, and up.
|
inline |
Compound assignment of another dimension.
Definition at line 39 of file GeoVolume.h.
References Dimension(), lo, and up.
|
inline |
| double cbm::algo::GeoVolume::Dimension::lo {+std::numeric_limits<double>::max()} |
Lower bound of the dimension.
Definition at line 29 of file GeoVolume.h.
Referenced by Center(), Dimension(), HasOverlapWith(), operator+=(), and Size().
| double cbm::algo::GeoVolume::Dimension::up {-std::numeric_limits<double>::max()} |
Upper bound of the dimension.
Definition at line 30 of file GeoVolume.h.
Referenced by Center(), Dimension(), HasOverlapWith(), operator+=(), and Size().