Struct linea::Vector [] [src]

pub struct Vector<A, N: ArrayLength<A>>(_);

Methods

impl<A, N: ArrayLength<A>> Vector<A, N>
[src]

fn from_array(a: GenericArray<A, N>) -> Self

fn to_array(self) -> GenericArray<A, N>

impl<A: Copy, N: ArrayLength<A>> Vector<A, N>
[src]

fn scalar_mul<B: Copy + Mul<A>>(self, b: B) -> Vector<B::Output, N> where N: ArrayLength<B> + ArrayLength<B::Output>

impl<A: Copy + Zero + AddAssign + One + Mul<Output=A> + Div<Output=A>, N: ArrayLength<A>> Vector<A, N>
[src]

fn norm(self) -> Self where N::ArrayType: Copy

Trait Implementations

impl<A: Clone, N: ArrayLength<A>> Clone for Vector<A, N> where N::ArrayType: Clone
[src]

fn clone(&self) -> Self

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<A: Copy, N: ArrayLength<A>> Copy for Vector<A, N> where N::ArrayType: Copy
[src]

impl<A: Copy + Zero, N: ArrayLength<A>> Zero for Vector<A, N>
[src]

fn zero() -> Self

Deprecated since 1.11.0

: no longer used for Iterator::sum

Unstable (zero_one)

: no longer used for Iterator::sum

The "zero" (usually, additive identity) for this type.

impl<B: Copy, A: Copy + Add<B>, N: ArrayLength<A> + ArrayLength<B> + ArrayLength<A::Output>> Add<Vector<B, N>> for Vector<A, N>
[src]

type Output = Vector<A::Output, N>

The resulting type after applying the + operator

fn add(self, Vector: Vector<B, N>) -> Self::Output

The method for the + operator

impl<B: Copy, A: Copy + AddAssign<B>, N: ArrayLength<A> + ArrayLength<B>> AddAssign<Vector<B, N>> for Vector<A, N>
[src]

fn add_assign(&mut self, Vector: Vector<B, N>)

The method for the += operator

impl<A: Copy + Neg, N: ArrayLength<A> + ArrayLength<A::Output>> Neg for Vector<A, N>
[src]

type Output = Vector<A::Output, N>

The resulting type after applying the - operator

fn neg(self) -> Self::Output

The method for the unary - operator

impl<B: Copy, A: Copy + Sub<B>, N: ArrayLength<A> + ArrayLength<B> + ArrayLength<A::Output>> Sub<Vector<B, N>> for Vector<A, N>
[src]

type Output = Vector<A::Output, N>

The resulting type after applying the - operator

fn sub(self, Vector: Vector<B, N>) -> Self::Output

The method for the - operator

impl<B: Copy, A: Copy + SubAssign<B>, N: ArrayLength<A> + ArrayLength<B>> SubAssign<Vector<B, N>> for Vector<A, N>
[src]

fn sub_assign(&mut self, Vector: Vector<B, N>)

The method for the -= operator