[][src]Struct acap::euclid::Euclidean

pub struct Euclidean<T>(pub T);

A point in Euclidean space.

This wrapper equips any coordinate space with the Euclidean distance metric.

Implementations

impl<T> Euclidean<T>[src]

pub fn new(point: T) -> Self[src]

Wrap a point.

pub fn inner(&self) -> &T[src]

Unwrap a point.

pub fn into_inner(self) -> T[src]

Unwrap a point.

Trait Implementations

impl<T: Clone> Clone for Euclidean<T>[src]

impl<T> CoordinateMetric<<T as Coordinates>::Value> for Euclidean<T> where
    T: Coordinates,
    EuclideanDistance<T::Value>: Distance
[src]

impl<T> CoordinateProximity<<T as Coordinates>::Value> for Euclidean<T> where
    T: Coordinates,
    EuclideanDistance<T::Value>: Distance
[src]

type Distance = EuclideanDistance<T::Value>

impl<T: Coordinates> Coordinates for Euclidean<T>[src]

type Value = T::Value

The type of individual coordinates.

impl<T: Copy> Copy for Euclidean<T>[src]

impl<T: Debug> Debug for Euclidean<T>[src]

impl<T: Eq> Eq for Euclidean<T>[src]

impl<T> Metric<Euclidean<T>> for Euclidean<T> where
    T: Coordinates,
    EuclideanDistance<T::Value>: Distance
[src]

Euclidean distance is a metric.

impl<T> Metric<Euclidean<T>> for T where
    T: Coordinates,
    EuclideanDistance<T::Value>: Distance
[src]

impl<T> Metric<T> for Euclidean<T> where
    T: Coordinates,
    EuclideanDistance<T::Value>: Distance
[src]

impl<T: PartialEq> PartialEq<Euclidean<T>> for Euclidean<T>[src]

impl<T> Proximity<Euclidean<T>> for Euclidean<T> where
    T: Coordinates,
    EuclideanDistance<T::Value>: Distance
[src]

The Euclidean distance function.

type Distance = EuclideanDistance<T::Value>

The type that represents distances.

impl<T> Proximity<Euclidean<T>> for T where
    T: Coordinates,
    EuclideanDistance<T::Value>: Distance
[src]

type Distance = EuclideanDistance<T::Value>

The type that represents distances.

impl<T> Proximity<T> for Euclidean<T> where
    T: Coordinates,
    EuclideanDistance<T::Value>: Distance
[src]

type Distance = EuclideanDistance<T::Value>

The type that represents distances.

impl<T> StructuralEq for Euclidean<T>[src]

impl<T> StructuralPartialEq for Euclidean<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Euclidean<T> where
    T: RefUnwindSafe

impl<T> Send for Euclidean<T> where
    T: Send

impl<T> Sync for Euclidean<T> where
    T: Sync

impl<T> Unpin for Euclidean<T> where
    T: Unpin

impl<T> UnwindSafe for Euclidean<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<K, V> KdMetric<V> for K where
    K: KdProximity<V> + Metric<V> + CoordinateMetric<<V as Coordinates>::Value>,
    V: Coordinates
[src]

impl<K, V> KdProximity<V> for K where
    K: Coordinates<Value = <V as Coordinates>::Value> + Proximity<V> + CoordinateProximity<<V as Coordinates>::Value, Distance = <K as Proximity<V>>::Distance>,
    V: Coordinates
[src]

impl<T> Metric<Angular<T>> for T where
    T: Coordinates,
    <T as Coordinates>::Value: Real,
    AngularDistance<<T as Coordinates>::Value>: Distance
[src]

impl<T> Metric<Chebyshev<T>> for T where
    T: Coordinates
[src]

impl<T> Metric<Euclidean<T>> for T where
    T: Coordinates,
    EuclideanDistance<<T as Coordinates>::Value>: Distance
[src]

impl<T> Metric<Euclidean<T>> for T where
    T: Coordinates,
    EuclideanDistance<<T as Coordinates>::Value>: Distance
[src]

impl<T> Metric<Euclidean<T>> for T where
    T: Coordinates,
    EuclideanDistance<<T as Coordinates>::Value>: Distance
[src]

impl<T> Metric<PrenormAngular<T>> for T where
    T: Coordinates,
    <T as Coordinates>::Value: Real,
    AngularDistance<<T as Coordinates>::Value>: Distance
[src]

impl<T> Metric<Taxicab<T>> for T where
    T: Coordinates
[src]

impl<T> Proximity<Angular<T>> for T where
    T: Coordinates,
    <T as Coordinates>::Value: Real,
    AngularDistance<<T as Coordinates>::Value>: Distance
[src]

type Distance = AngularDistance<<T as Coordinates>::Value>

The type that represents distances.

impl<T> Proximity<Chebyshev<T>> for T where
    T: Coordinates
[src]

type Distance = <T as Coordinates>::Value

The type that represents distances.

impl<T> Proximity<Cosine<T>> for T where
    T: Coordinates,
    <T as Coordinates>::Value: Real
[src]

type Distance = <T as Coordinates>::Value

The type that represents distances.

impl<T> Proximity<Euclidean<T>> for T where
    T: Coordinates,
    EuclideanDistance<<T as Coordinates>::Value>: Distance
[src]

type Distance = EuclideanDistance<<T as Coordinates>::Value>

The type that represents distances.

impl<T> Proximity<Euclidean<T>> for T where
    T: Coordinates,
    EuclideanDistance<<T as Coordinates>::Value>: Distance
[src]

type Distance = EuclideanDistance<<T as Coordinates>::Value>

The type that represents distances.

impl<T> Proximity<Euclidean<T>> for T where
    T: Coordinates,
    EuclideanDistance<<T as Coordinates>::Value>: Distance
[src]

type Distance = EuclideanDistance<<T as Coordinates>::Value>

The type that represents distances.

impl<T> Proximity<PrenormAngular<T>> for T where
    T: Coordinates,
    <T as Coordinates>::Value: Real,
    AngularDistance<<T as Coordinates>::Value>: Distance
[src]

type Distance = AngularDistance<<T as Coordinates>::Value>

The type that represents distances.

impl<T> Proximity<PrenormCosine<T>> for T where
    T: Coordinates,
    <T as Coordinates>::Value: Real
[src]

type Distance = <T as Coordinates>::Value

The type that represents distances.

impl<T> Proximity<Taxicab<T>> for T where
    T: Coordinates
[src]

type Distance = <T as Coordinates>::Value

The type that represents distances.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.