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

Required Associated Constants§

source

const FRAC_PI_2: Self

source

const PI: Self

source

const TAU: Self

Implementations on Foreign Types§

source§

impl<N> FixedRadians for FixedI16<N>where N: LeEqU16 + IsLessOrEqual<U12, Output = True> + IsLessOrEqual<Sum<U12, U1>, Output = True> + IsLessOrEqual<Sum<U12, U2>, Output = True>,

source§

const FRAC_PI_2: Self = FixedI16::FRAC_PI_2

source§

const PI: Self = FixedI16::PI

source§

const TAU: Self = FixedI16::TAU

source§

impl<N> FixedRadians for FixedI8<N>where N: LeEqU8 + IsLessOrEqual<U4, Output = True> + IsLessOrEqual<Sum<U4, U1>, Output = True> + IsLessOrEqual<Sum<U4, U2>, Output = True>,

source§

const FRAC_PI_2: Self = FixedI8::FRAC_PI_2

source§

const PI: Self = FixedI8::PI

source§

const TAU: Self = FixedI8::TAU

source§

impl<N> FixedRadians for FixedI32<N>where N: LeEqU32 + IsLessOrEqual<U28, Output = True> + IsLessOrEqual<Sum<U28, U1>, Output = True> + IsLessOrEqual<Sum<U28, U2>, Output = True>,

source§

const FRAC_PI_2: Self = FixedI32::FRAC_PI_2

source§

const PI: Self = FixedI32::PI

source§

const TAU: Self = FixedI32::TAU

source§

impl<N> FixedRadians for FixedI64<N>where N: LeEqU64 + IsLessOrEqual<U60, Output = True> + IsLessOrEqual<Sum<U60, U1>, Output = True> + IsLessOrEqual<Sum<U60, U2>, Output = True>,

source§

const FRAC_PI_2: Self = FixedI64::FRAC_PI_2

source§

const PI: Self = FixedI64::PI

source§

const TAU: Self = FixedI64::TAU

source§

impl<N> FixedRadians for FixedI128<N>where N: LeEqU128 + IsLessOrEqual<U124, Output = True> + IsLessOrEqual<Sum<U124, U1>, Output = True> + IsLessOrEqual<Sum<U124, U2>, Output = True>,

source§

const FRAC_PI_2: Self = FixedI128::FRAC_PI_2

source§

const PI: Self = FixedI128::PI

source§

const TAU: Self = FixedI128::TAU

Implementors§