Trait na::NumPnt[][src]

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

Trait grouping most common operations on points.

Associated Types

type Field: BaseNum[src]

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

Loading content...

Required methods

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

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

Loading content...

Implementors

impl<N: BaseNum> NumPnt for Point1<N>[src]

type Field = N

type Coordinates = Vector1<N>

impl<N: BaseNum> NumPnt for Point2<N>[src]

type Field = N

type Coordinates = Vector2<N>

impl<N: BaseNum> NumPnt for Point3<N>[src]

type Field = N

type Coordinates = Vector3<N>

impl<N: BaseNum> NumPnt for Point4<N>[src]

type Field = N

type Coordinates = Vector4<N>

impl<N: BaseNum> NumPnt for Point5<N>[src]

type Field = N

type Coordinates = Vector5<N>

impl<N: BaseNum> NumPnt for Point6<N>[src]

type Field = N

type Coordinates = Vector6<N>

Loading content...