[][src]Trait vector2math::Scalar

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 { ... }
fn square(self) -> [Self; 2] { ... } }

Trait for math with scalar numbers

Provided methods

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

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

Get the min of this Scalar and another

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

fn square(self) -> [Self; 2]

Create a square Vector from this Scalar

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...