Struct acap::euclid::Euclidean [−][src]
pub struct Euclidean<T>(pub T);
Expand description
A point in Euclidean space.
This wrapper equips any coordinate space with the Euclidean distance metric.
Tuple Fields
0: T
Implementations
Trait Implementations
impl<T> Proximity<Euclidean<T>> for Euclidean<T> where
T: Coordinates,
EuclideanDistance<T::Value>: Distance,
impl<T> Proximity<Euclidean<T>> for Euclidean<T> where
T: Coordinates,
EuclideanDistance<T::Value>: Distance,
The Euclidean distance function.
impl<T> Proximity<Euclidean<T>> for T where
T: Coordinates,
EuclideanDistance<T::Value>: Distance,
impl<T> Proximity<Euclidean<T>> for T where
T: Coordinates,
EuclideanDistance<T::Value>: Distance,
impl<T> Proximity<T> for Euclidean<T> where
T: Coordinates,
EuclideanDistance<T::Value>: Distance,
impl<T> Proximity<T> for Euclidean<T> where
T: Coordinates,
EuclideanDistance<T::Value>: Distance,
impl<T> Metric<Euclidean<T>> for Euclidean<T> where
T: Coordinates,
EuclideanDistance<T::Value>: Distance,
Euclidean distance is a metric.
impl<T> Metric<Euclidean<T>> for T where
T: Coordinates,
EuclideanDistance<T::Value>: Distance,
impl<T> Metric<T> for Euclidean<T> where
T: Coordinates,
EuclideanDistance<T::Value>: Distance,
impl<T> Minkowski<Euclidean<T>> for Euclidean<T> where
T: Coordinates,
EuclideanDistance<T::Value>: Distance,
Euclidean distance is a Minkowski distance.
impl<T> Minkowski<Euclidean<T>> for T where
T: Coordinates,
EuclideanDistance<T::Value>: Distance,
impl<T> Minkowski<T> for Euclidean<T> where
T: Coordinates,
EuclideanDistance<T::Value>: Distance,
Auto Trait Implementations
impl<T> RefUnwindSafe for Euclidean<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Euclidean<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.