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.
inline constexpr AnyCharge(float absQ) noexcept
Construct with the magnitude of the input charge.
inline constexpr float absQ() const noexcept
- inline friend constexpr friend bool operator== (AnyCharge lhs, AnyCharge rhs) noexcept
Compare for equality.
- inline constexpr AnyCharge(float absQ) noexcept