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

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

Loading content...

Implementors

impl<T> VecSigned for Vec1<T> where
    T: VecItem + Signed
[src]

impl<T> VecSigned for Vec2<T> where
    T: VecItem + Signed
[src]

impl<T> VecSigned for Vec3<T> where
    T: VecItem + Signed
[src]

impl<T> VecSigned for Vec4<T> where
    T: VecItem + Signed
[src]

Loading content...