Struct acap::taxi::Taxicab [−][src]
pub struct Taxicab<T>(pub T);
Expand description
A point in taxicab space.
This wrapper equips any coordinate space with the taxicab distance metric.
Tuple Fields
0: T
Implementations
Trait Implementations
The taxicab distance function.
Taxicab distance is a metric.
Taxicab distance is a Minkowski distance.
Auto Trait Implementations
impl<T> RefUnwindSafe for Taxicab<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Taxicab<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Proximity<PrenormCosine<T>> for T where
T: Coordinates,
<T as Coordinates>::Value: Real,
impl<T> Proximity<PrenormCosine<T>> for T where
T: Coordinates,
<T as Coordinates>::Value: Real,
type Distance = <T as Coordinates>::Value
type Distance = <T as Coordinates>::Value
The type that represents distances.
Calculate the distance between this point and another one.