[][src]Trait acap::coords::CoordinateProximity

pub trait CoordinateProximity<T> {
    type Distance: Distance;
    fn distance_to_coords(&self, coords: &[T]) -> Self::Distance;
}

Types that support computing distances to raw slices of coordinates.

Associated Types

Loading content...

Required methods

fn distance_to_coords(&self, coords: &[T]) -> Self::Distance

Compute the distance to a point specified by its coordinates.

Loading content...

Implementations on Foreign Types

impl<'_, T: CoordinateProximity<U>, U> CoordinateProximity<U> for &'_ T[src]

Blanket CoordinateProximity implementation for references.

type Distance = T::Distance

Loading content...

Implementors

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> CoordinateProximity<<T as Coordinates>::Value> for Chebyshev<T>[src]

type Distance = T::Value

impl<T: Coordinates> CoordinateProximity<<T as Coordinates>::Value> for Taxicab<T>[src]

type Distance = T::Value

Loading content...