|
Celeritas 0.7.0-dev.251+develop.9b9328e4
|
Sense helper functions and types. More...
Functions | |
| constexpr Sense | celeritas::to_sense (bool s) |
| Convert a boolean value to a Sense enum. | |
| constexpr Sense | celeritas::flip_sense (Sense orig) |
| Change the sense across a surface. | |
| constexpr SignedSense | celeritas::flip_sense (SignedSense orig) |
| Change the sense across a surface. | |
| constexpr SignedSense | celeritas::real_to_sense (real_type quadric) |
| Evaluate the sense based on the LHS expression of the quadric equation. | |
| constexpr Sense | celeritas::to_sense (SignedSense s) |
| Convert a signed sense to a Sense enum. | |
| constexpr SurfaceState | celeritas::to_surface_state (SignedSense s) |
| Convert a signed sense to a surface state. | |
| constexpr char | celeritas::to_char (Sense s) |
| Get a printable character corresponding to a sense. | |
| char const * | celeritas::to_cstring (SignedSense s) |
Sense helper functions and types.
|
inlineconstexpr |
Evaluate the sense based on the LHS expression of the quadric equation.
This is an optimized jump-free version of:
as
and compressed into a single line.
NaN values are treated as "outside".