Trait rin::math::NumPnt[][src]

pub trait NumPnt: Sub<Self, Output = Self::Coordinates, Output = Self> + Mul<Self::Field, Output = Self> + Div<Self::Field, Output = Self> + MulAssign<Self::Field> + DivAssign<Self::Field> + Add<Self::Coordinates, Output = Self> + Sub<Self::Coordinates> + AddAssign<Self::Coordinates> + SubAssign<Self::Coordinates> + PartialEq<Self> {
    type Field: BaseNum;
    type Coordinates: Index<usize> + IndexMut<usize> + Add<Self::Coordinates> + Sub<Self::Coordinates> + AddAssign<Self::Coordinates> + SubAssign<Self::Coordinates> + Mul<Self::Field> + Div<Self::Field> + MulAssign<Self::Field> + DivAssign<Self::Field>;
    pub fn coordinates(&self) -> Self::Coordinates;
pub fn from_coordiantes(coords: Self::Coordinates) -> Self; }

Trait grouping most common operations on points.

Associated Types

type Field: BaseNum[src]

type Coordinates: Index<usize> + IndexMut<usize> + Add<Self::Coordinates> + Sub<Self::Coordinates> + AddAssign<Self::Coordinates> + SubAssign<Self::Coordinates> + Mul<Self::Field> + Div<Self::Field> + MulAssign<Self::Field> + DivAssign<Self::Field>[src]

Loading content...

Required methods

pub fn coordinates(&self) -> Self::Coordinates[src]

pub fn from_coordiantes(coords: Self::Coordinates) -> Self[src]

Loading content...

Implementors

impl<N> NumPnt for Point<N, U1> where
    N: BaseNum
[src]

type Field = N

type Coordinates = Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>

impl<N> NumPnt for Point<N, U2> where
    N: BaseNum
[src]

type Field = N

type Coordinates = Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>

impl<N> NumPnt for Point<N, U3> where
    N: BaseNum
[src]

type Field = N

type Coordinates = Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>

impl<N> NumPnt for Point<N, U4> where
    N: BaseNum
[src]

type Field = N

type Coordinates = Matrix<N, U4, U1, <DefaultAllocator as Allocator<N, U4, U1>>::Buffer>

impl<N> NumPnt for Point<N, U5> where
    N: BaseNum
[src]

type Field = N

type Coordinates = Matrix<N, U5, U1, <DefaultAllocator as Allocator<N, U5, U1>>::Buffer>

impl<N> NumPnt for Point<N, U6> where
    N: BaseNum
[src]

type Field = N

type Coordinates = Matrix<N, U6, U1, <DefaultAllocator as Allocator<N, U6, U1>>::Buffer>

Loading content...