Trait coord::math::VecSigned[][src]

pub trait VecSigned<'a>: Vector<'a> where
    Self::Item: VecItem<'a> + Signed
{ fn snake_length(&self) -> Self::Item; }

A trait for vectors containing signed numerical types

Required Methods

Calculates the snake length (also known as 'manhattan distance') of the vector

For unsigned vectors, this is identical to the .sum() of the vector

Implementors