pub enum MathFunction {
Show 38 variants
Abs,
Min,
Max,
Clamp,
Saturate,
Floor,
Ceil,
Round,
Fract,
Trunc,
Sin,
Cos,
Tan,
Asin,
Acos,
Atan,
Atan2,
Sinh,
Cosh,
Tanh,
Sqrt,
InverseSqrt,
Log,
Log2,
Exp,
Exp2,
Pow,
Dot,
Cross,
Normalize,
Length,
Distance,
Mix,
Step,
SmoothStep,
Fma,
ExtractBits,
InsertBits,
}Expand description
A built-in math function.
Variants§
Abs
Min
Max
Clamp
Saturate
Floor
Ceil
Round
Fract
Trunc
Sin
Cos
Tan
Asin
Acos
Atan
Atan2
Sinh
Cosh
Tanh
Sqrt
InverseSqrt
Log
Log2
Exp
Exp2
Pow
Dot
Cross
Normalize
Length
Distance
Mix
Step
SmoothStep
Fma
ExtractBits
InsertBits
Trait Implementations§
Source§impl Clone for MathFunction
impl Clone for MathFunction
Source§fn clone(&self) -> MathFunction
fn clone(&self) -> MathFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MathFunction
Source§impl Debug for MathFunction
impl Debug for MathFunction
Source§impl Display for MathFunction
impl Display for MathFunction
impl Eq for MathFunction
Source§impl Hash for MathFunction
impl Hash for MathFunction
Source§impl PartialEq for MathFunction
impl PartialEq for MathFunction
impl StructuralPartialEq for MathFunction
Auto Trait Implementations§
impl Freeze for MathFunction
impl RefUnwindSafe for MathFunction
impl Send for MathFunction
impl Sync for MathFunction
impl Unpin for MathFunction
impl UnsafeUnpin for MathFunction
impl UnwindSafe for MathFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more