pub trait ShaderMath {
Show 26 methods // Required methods fn abs(self) -> Self; fn sin(self) -> Self; fn cos(self) -> Self; fn tan(self) -> Self; fn asin(self) -> Self; fn acos(self) -> Self; fn atan(self) -> Self; fn sinh(self) -> Self; fn cosh(self) -> Self; fn tanh(self) -> Self; fn asinh(self) -> Self; fn acosh(self) -> Self; fn atanh(self) -> Self; fn fract(self) -> Self; fn ceil(self) -> Self; fn floor(self) -> Self; fn min(self, v: Self) -> Self; fn max(self, v: Self) -> Self; fn clamp(self, low: Self, high: Self) -> Self; fn exp(self) -> Self; fn exp2(self) -> Self; fn ln(self) -> Self; fn log2(self) -> Self; fn log10(self) -> Self; fn powf(self, v: Self) -> Self; fn powi(self, p: i32) -> Self;
}

Required Methods§

fn abs(self) -> Self

fn sin(self) -> Self

fn cos(self) -> Self

fn tan(self) -> Self

fn asin(self) -> Self

fn acos(self) -> Self

fn atan(self) -> Self

fn sinh(self) -> Self

fn cosh(self) -> Self

fn tanh(self) -> Self

fn asinh(self) -> Self

fn acosh(self) -> Self

fn atanh(self) -> Self

fn fract(self) -> Self

fn ceil(self) -> Self

fn floor(self) -> Self

fn min(self, v: Self) -> Self

fn max(self, v: Self) -> Self

fn clamp(self, low: Self, high: Self) -> Self

fn exp(self) -> Self

fn exp2(self) -> Self

fn ln(self) -> Self

fn log2(self) -> Self

fn log10(self) -> Self

fn powf(self, v: Self) -> Self

fn powi(self, p: i32) -> Self

Implementations on Foreign Types§

§

impl ShaderMath for f32

§

fn abs(self) -> f32

§

fn sin(self) -> f32

§

fn cos(self) -> f32

§

fn tan(self) -> f32

§

fn asin(self) -> f32

§

fn acos(self) -> f32

§

fn atan(self) -> f32

§

fn sinh(self) -> f32

§

fn cosh(self) -> f32

§

fn tanh(self) -> f32

§

fn asinh(self) -> f32

§

fn acosh(self) -> f32

§

fn atanh(self) -> f32

§

fn fract(self) -> f32

§

fn ceil(self) -> f32

§

fn floor(self) -> f32

§

fn min(self, v: f32) -> f32

§

fn max(self, v: f32) -> f32

§

fn clamp(self, low: f32, high: f32) -> f32

§

fn exp(self) -> f32

§

fn exp2(self) -> f32

§

fn ln(self) -> f32

§

fn log2(self) -> f32

§

fn log10(self) -> f32

§

fn powf(self, v: f32) -> f32

§

fn powi(self, v: i32) -> f32

§

impl ShaderMath for f64

§

fn abs(self) -> f64

§

fn sin(self) -> f64

§

fn cos(self) -> f64

§

fn tan(self) -> f64

§

fn asin(self) -> f64

§

fn acos(self) -> f64

§

fn atan(self) -> f64

§

fn sinh(self) -> f64

§

fn cosh(self) -> f64

§

fn tanh(self) -> f64

§

fn asinh(self) -> f64

§

fn acosh(self) -> f64

§

fn atanh(self) -> f64

§

fn fract(self) -> f64

§

fn ceil(self) -> f64

§

fn floor(self) -> f64

§

fn min(self, v: f64) -> f64

§

fn max(self, v: f64) -> f64

§

fn clamp(self, low: f64, high: f64) -> f64

§

fn exp(self) -> f64

§

fn exp2(self) -> f64

§

fn ln(self) -> f64

§

fn log2(self) -> f64

§

fn log10(self) -> f64

§

fn powf(self, v: f64) -> f64

§

fn powi(self, v: i32) -> f64

Implementors§