Trait mutils::NumTuple[][src]

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

Required methods

fn new(first: N, second: N) -> Self[src]

fn first(&self) -> N[src]

fn second(&self) -> N[src]

fn set_first(&mut self, n: N)[src]

fn set_second(&mut self, n: N)[src]

fn set(&mut self, first: N, second: N)[src]

fn get(&mut self) -> (N, N)[src]

Loading content...

Provided methods

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

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

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

fn abs(&self) -> Self[src]

fn is_outside(self, xy1: Self, xy2: Self) -> bool[src]

fn is_inside(self, xy1: Self, xy2: Self) -> bool[src]

Loading content...

Implementors

impl<N: Num> NumTuple<N> for Point<N>[src]

impl<N: Num> NumTuple<N> for Size<N>[src]

Loading content...