Trait coord::math::VecSigned [−][src]
pub trait VecSigned: Vector where
Self::Item: VecItem + Signed, { fn snake_length(&self) -> Self::Item; }
A trait for vectors containing signed numerical types
Required Methods
fn snake_length(&self) -> Self::Item
Calculates the snake length (also known as 'manhattan distance') of the vector
For unsigned vectors, this is identical to the .sum()
of the vector