Celeritas
0.5.0-56+6b053cd
|
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.