Trait Trigo
splines::interpolate
pub trait Trigo { fn pi() -> Self; fn cos(self) -> Self; }
Types with a sane definition of π and cosine.
fn pi() -> Self
π.
fn cos(self) -> Self
Cosine of the argument.
impl Trigo for f32
impl Trigo for f64