|
Celeritas 0.7.0-dev.168+develop.6e17e5869
|
Bump a bounding box outward and possibly convert to another type. More...
#include <BoundingBoxUtils.hh>
Public Types | |
Type aliases | |
| using | TolU = Tolerance< U > |
| using | result_type = BoundingBox< T > |
| using | argument_type = BoundingBox< U > |
Public Member Functions | |
| BoundingBoxBumper () | |
| Construct with default "soft equal" tolerances. | |
| BoundingBoxBumper (TolU const &tol) | |
| Construct with ORANGE tolerances. | |
| result_type | operator() (argument_type const &bbox) |
| Return the expanded and converted bounding box. | |
Bump a bounding box outward and possibly convert to another type.
| T | destination type |
| U | source type |
The upper and lower coordinates are bumped outward independently using the relative and absolute tolerances. To ensure that the outward bump is not truncated in the destination type, the "std::nextafter" function advances to the next floating point representable number.