pub trait NumTuple<N: Num>: Add<Output = Self> + AddAssign + Sub<Output = Self> + SubAssign + Mul<Output = Self> + MulAssign + Div<Output = Self> + DivAssign + Rem<Output = Self> + Copy + PartialEq + Sized {
fn new(first: N, second: N) -> Self;
fn first(&self) -> N;
fn second(&self) -> N;
fn set_first(&mut self, n: N);
fn set_second(&mut self, n: N);
fn set(&mut self, first: N, second: N);
fn get(&mut self) -> (N, N);
fn min(self, other: Self) -> Self { ... }
fn max(self, other: Self) -> Self { ... }
fn max_from_zero(self, other: Self) -> Self { ... }
fn abs(&self) -> Self { ... }
fn is_outside(self, xy1: Self, xy2: Self) -> bool { ... }
fn is_inside(self, xy1: Self, xy2: Self) -> bool { ... }
}
Loading content...Loading content...Loading content...