Trait vector2math::Scalar
source · pub trait Scalar: Add<Self, Output = Self> + Copy + PartialEq + PartialOrd + Sub<Self, Output = Self> + Mul<Self, Output = Self> + Div<Self, Output = Self> {
const ZERO: Self;
const ONE: Self;
const TWO: Self;
// Required method
fn abs(self) -> Self;
// Provided methods
fn maxx(self, other: Self) -> Self { ... }
fn minn(self, other: Self) -> Self { ... }
}
Expand description
Trait for math with scalar numbers