Trait fixed_math::traits::FixedRadians
source · pub trait FixedRadians: FixedSigned {
const FRAC_PI_2: Self;
const PI: Self;
const TAU: Self;
}Expand description
There are requirements for certain constants:
- FRAC_PI_2 needs 2 int bits
- PI needs 3 int bits
- TAU needs 4 int bits
=> for a fixed number with N bits, we can have at most N - 3 fractional bits for constants to be representable