pub enum MathOp {
Show 21 variants
Sin,
Cos,
Tan,
Asin,
Acos,
Atan,
Atan2,
Sinh,
Cosh,
Tanh,
Exp,
Exp2,
Log,
Log2,
Log10,
Lerp,
Clamp,
Step,
SmoothStep,
Fract,
CopySign,
}Expand description
Math operations (intrinsics).
Variants§
Sin
Sine.
Cos
Cosine.
Tan
Tangent.
Asin
Arc sine.
Acos
Arc cosine.
Atan
Arc tangent.
Atan2
Arc tangent with two arguments.
Sinh
Hyperbolic sine.
Cosh
Hyperbolic cosine.
Tanh
Hyperbolic tangent.
Exp
Exponential (e^x).
Exp2
Exponential base 2.
Log
Natural logarithm.
Log2
Logarithm base 2.
Log10
Logarithm base 10.
Lerp
Linear interpolation.
Clamp
Clamp.
Step
Step function.
SmoothStep
Smooth step.
Fract
Fract (fractional part).
CopySign
Copy sign.
Trait Implementations§
impl Copy for MathOp
impl Eq for MathOp
impl StructuralPartialEq for MathOp
Auto Trait Implementations§
impl Freeze for MathOp
impl RefUnwindSafe for MathOp
impl Send for MathOp
impl Sync for MathOp
impl Unpin for MathOp
impl UnwindSafe for MathOp
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