Trait na::NumPnt

source · []
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;
}
Expand description

Trait grouping most common operations on points.

Required Associated Types

Required Methods

Implementors