Trait DekiExtApprox

Source
pub trait DekiExtApprox {
    // Required methods
    fn sin_ca(self) -> f32;
    fn cos_ca(self) -> f32;
    fn tan_ca(self) -> f32;
    fn exp_ca(self) -> f32;
    fn log_ca(self, _: f32) -> f32;
    fn sqrt_ca(self) -> f32;
    fn pow_ca(self, _: f32) -> f32;
}
Expand description

This is an extension trait for the following impl:

#[extension(pub trait DekiExtApprox)]
impl for f32

Required Methods§

Source

fn sin_ca(self) -> f32

approx sine, faster but inaccurate

Source

fn cos_ca(self) -> f32

approx cosine, faster but inaccurate

Source

fn tan_ca(self) -> f32

approx tangent, faster but inaccurate

Source

fn exp_ca(self) -> f32

approx exponential, faster but inaccurate

Source

fn log_ca(self, _: f32) -> f32

approx logarithm, faster but inaccurate

Source

fn sqrt_ca(self) -> f32

approx square, faster but inaccurate

Source

fn pow_ca(self, _: f32) -> f32

approx power by, faster but inaccurate

Implementations on Foreign Types§

Source§

impl DekiExtApprox for f32

Source§

fn sin_ca(self) -> f32

approx sine, faster but inaccurate

Source§

fn cos_ca(self) -> f32

approx cosine, faster but inaccurate

Source§

fn tan_ca(self) -> f32

approx tangent, faster but inaccurate

Source§

fn exp_ca(self) -> f32

approx exponential, faster but inaccurate

Source§

fn log_ca(self, b: f32) -> f32

approx logarithm, faster but inaccurate

Source§

fn sqrt_ca(self) -> f32

approx square, faster but inaccurate

Source§

fn pow_ca(self, b: f32) -> f32

approx power by, faster but inaccurate

Implementors§