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]
Required methods
pub fn coordinates(&self) -> Self::Coordinates
[src]
pub fn from_coordiantes(coords: Self::Coordinates) -> Self
[src]
Implementors
impl<N> NumPnt for Point<N, U1> where
N: BaseNum,
[src]
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>
pub fn coordinates(&self) -> <Point<N, U1> as NumPnt>::Coordinates
[src]
pub fn from_coordiantes(
coords: <Point<N, U1> as NumPnt>::Coordinates
) -> Point<N, U1>
[src]
coords: <Point<N, U1> as NumPnt>::Coordinates
) -> Point<N, U1>
impl<N> NumPnt for Point<N, U2> where
N: BaseNum,
[src]
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>
pub fn coordinates(&self) -> <Point<N, U2> as NumPnt>::Coordinates
[src]
pub fn from_coordiantes(
coords: <Point<N, U2> as NumPnt>::Coordinates
) -> Point<N, U2>
[src]
coords: <Point<N, U2> as NumPnt>::Coordinates
) -> Point<N, U2>
impl<N> NumPnt for Point<N, U3> where
N: BaseNum,
[src]
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>
pub fn coordinates(&self) -> <Point<N, U3> as NumPnt>::Coordinates
[src]
pub fn from_coordiantes(
coords: <Point<N, U3> as NumPnt>::Coordinates
) -> Point<N, U3>
[src]
coords: <Point<N, U3> as NumPnt>::Coordinates
) -> Point<N, U3>
impl<N> NumPnt for Point<N, U4> where
N: BaseNum,
[src]
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>
pub fn coordinates(&self) -> <Point<N, U4> as NumPnt>::Coordinates
[src]
pub fn from_coordiantes(
coords: <Point<N, U4> as NumPnt>::Coordinates
) -> Point<N, U4>
[src]
coords: <Point<N, U4> as NumPnt>::Coordinates
) -> Point<N, U4>
impl<N> NumPnt for Point<N, U5> where
N: BaseNum,
[src]
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>
pub fn coordinates(&self) -> <Point<N, U5> as NumPnt>::Coordinates
[src]
pub fn from_coordiantes(
coords: <Point<N, U5> as NumPnt>::Coordinates
) -> Point<N, U5>
[src]
coords: <Point<N, U5> as NumPnt>::Coordinates
) -> Point<N, U5>
impl<N> NumPnt for Point<N, U6> where
N: BaseNum,
[src]
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>
pub fn coordinates(&self) -> <Point<N, U6> as NumPnt>::Coordinates
[src]
pub fn from_coordiantes(
coords: <Point<N, U6> as NumPnt>::Coordinates
) -> Point<N, U6>
[src]
coords: <Point<N, U6> as NumPnt>::Coordinates
) -> Point<N, U6>