[−][src]Trait vector2math::Scalar
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
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]
T: Copy + PartialEq + PartialOrd + Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + Div<T, Output = T> + Abs + ZeroOneTwo,