Trait coord::math::VecNum [−][src]
pub trait VecNum<'a>: Vector<'a> where
Self::Item: VecItem<'a> + 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 produce of all components of the vector