Charge and momentum interpretation for arbitrarily charged particles.
Only a charge magnitude identical to zero is interpreted as representing a neutral particle. This avoids ambiguities that might arise from using an approximate comparison with an arbitrary epsilon.
AnyCharge() = delete¶
Delete default constructor to ensure charge is always explicitely given.
inline constexpr AnyCharge(T absQ) noexcept¶
Construct with the magnitude of the input charge.
- AnyCharge() = delete¶