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