Skip to main content

TwoOverPi

Trait TwoOverPi 

Source
pub trait TwoOverPi {
    const TWO_OVER_PI: Self;
}
Expand description

Provides $2/\pi$.

Required Associated Constants§

Source

const TWO_OVER_PI: Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TwoOverPi for f32

$2/\pi$.

Source§

const TWO_OVER_PI: f32 = core::f32::consts::FRAC_2_PI

Source§

impl TwoOverPi for f64

$2/\pi$.

Source§

const TWO_OVER_PI: f64 = core::f64::consts::FRAC_2_PI

Implementors§