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§

source

fn abs(self) -> Self

source

fn sin(self) -> Self

source

fn cos(self) -> Self

source

fn tan(self) -> Self

source

fn asin(self) -> Self

source

fn acos(self) -> Self

source

fn atan(self) -> Self

source

fn sinh(self) -> Self

source

fn cosh(self) -> Self

source

fn tanh(self) -> Self

source

fn asinh(self) -> Self

source

fn acosh(self) -> Self

source

fn atanh(self) -> Self

source

fn fract(self) -> Self

source

fn ceil(self) -> Self

source

fn floor(self) -> Self

source

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

source

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

source

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

source

fn exp(self) -> Self

source

fn exp2(self) -> Self

source

fn ln(self) -> Self

source

fn log2(self) -> Self

source

fn log10(self) -> Self

source

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

source

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

Implementations on Foreign Types§

source§

impl ShaderMath for f32

source§

fn abs(self) -> f32

source§

fn sin(self) -> f32

source§

fn cos(self) -> f32

source§

fn tan(self) -> f32

source§

fn asin(self) -> f32

source§

fn acos(self) -> f32

source§

fn atan(self) -> f32

source§

fn sinh(self) -> f32

source§

fn cosh(self) -> f32

source§

fn tanh(self) -> f32

source§

fn asinh(self) -> f32

source§

fn acosh(self) -> f32

source§

fn atanh(self) -> f32

source§

fn fract(self) -> f32

source§

fn ceil(self) -> f32

source§

fn floor(self) -> f32

source§

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

source§

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

source§

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

source§

fn exp(self) -> f32

source§

fn exp2(self) -> f32

source§

fn ln(self) -> f32

source§

fn log2(self) -> f32

source§

fn log10(self) -> f32

source§

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

source§

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

source§

impl ShaderMath for f64

source§

fn abs(self) -> f64

source§

fn sin(self) -> f64

source§

fn cos(self) -> f64

source§

fn tan(self) -> f64

source§

fn asin(self) -> f64

source§

fn acos(self) -> f64

source§

fn atan(self) -> f64

source§

fn sinh(self) -> f64

source§

fn cosh(self) -> f64

source§

fn tanh(self) -> f64

source§

fn asinh(self) -> f64

source§

fn acosh(self) -> f64

source§

fn atanh(self) -> f64

source§

fn fract(self) -> f64

source§

fn ceil(self) -> f64

source§

fn floor(self) -> f64

source§

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

source§

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

source§

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

source§

fn exp(self) -> f64

source§

fn exp2(self) -> f64

source§

fn ln(self) -> f64

source§

fn log2(self) -> f64

source§

fn log10(self) -> f64

source§

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

source§

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

Implementors§