[][src]Trait pane::math::Scalar

pub trait Scalar: Add<Self, Output = Self> + Copy + From<f32> + From<u32> + PartialEq + PartialOrd + Sub<Self, Output = Self> + Mul<Self, Output = Self> + Div<Self, Output = Self> + Neg<Output = Self> + Sin<Output = Self> + Cos<Output = Self> + Pow<Self, Output = Self> + ZeroOneTwo {
    fn abs(self) -> Self { ... }
fn max(self, other: Self) -> Self { ... }
fn min(self, other: Self) -> Self { ... } }

Trait for math with scalar numbers

Provided methods

fn abs(self) -> Self

Get the absolute value

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

Get the max of this Scalar and another

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

Get the min of this Scalar and another

Loading content...

Implementors

impl<T> Scalar for T where
    T: Copy + From<f32> + From<u32> + PartialEq + PartialOrd + Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + Div<T, Output = T> + Neg<Output = T> + Sin<Output = T> + Cos<Output = T> + Pow<T, Output = T> + ZeroOneTwo
[src]

Loading content...