[][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> MetricSpace for Quaternion<T> where
    T: Clone + AddAssign + Sub<T, Output = T> + Real + Zero
[src]

type Metric = T

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

type Metric = Self::Scalar

Loading content...