[][src]Trait coord::math::VecNum

pub trait VecNum: Vector where
    Self::Item: VecItem + Num
{ fn sum(&self) -> Self::Item;
fn product(&self) -> Self::Item; }

A trait for vectors containing numerical types

Required methods

fn sum(&self) -> Self::Item

Calculates the sum of all components of the vector

fn product(&self) -> Self::Item

Calculates the product of all components of the vector

Loading content...

Implementors

impl<T> VecNum for Vec1<T> where
    T: VecItem + Num
[src]

impl<T> VecNum for Vec2<T> where
    T: VecItem + Num
[src]

impl<T> VecNum for Vec3<T> where
    T: VecItem + Num
[src]

impl<T> VecNum for Vec4<T> where
    T: VecItem + Num
[src]

Loading content...