[][src]Trait aljabar::MetricSpace

pub trait MetricSpace: Sized {
    type Metric;
    fn distance2(self, other: Self) -> Self::Metric;
}

A type with a distance function between two values.

Associated Types

type Metric

Loading content...

Required methods

fn distance2(self, other: Self) -> Self::Metric

Returns the distance squared between the two values.

Loading content...

Implementors

impl<T, const N: usize> MetricSpace for Vector<T, { N }> where
    Self: InnerSpace
[src]

type Metric = Self::Scalar

Loading content...