Trait vector2math::Scalar[][src]

pub trait Scalar: Add<Self, Output = Self> + Copy + PartialEq + PartialOrd + Sub<Self, Output = Self> + Mul<Self, Output = Self> + Div<Self, Output = Self> + Abs + ZeroOneTwo {
    fn maxx(self, other: Self) -> Self { ... }
fn minn(self, other: Self) -> Self { ... } }

Trait for math with scalar numbers

Provided methods

fn maxx(self, other: Self) -> Self[src]

Get the max of this Scalar and another

This function is named to not conflict with the Scalar’s default max function

fn minn(self, other: Self) -> Self[src]

Get the min of this Scalar and another

This function is named to not conflict with the Scalar’s default min function

Loading content...

Implementors

impl<T> Scalar for T where
    T: Copy + PartialEq + PartialOrd + Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + Div<T, Output = T> + Abs + ZeroOneTwo
[src]

Loading content...