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) -> 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, v: i32) -> Self

source§

impl ShaderMath for f64

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, v: i32) -> Self

Implementors§