Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::BoundingBoxBumper< T, U > Class Template Reference

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.
 

Detailed Description

template<class T, class U = T>
class celeritas::BoundingBoxBumper< T, U >

Bump a bounding box outward and possibly convert to another type.

Template Parameters
Tdestination type
Usource 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.


The documentation for this class was generated from the following file: