Trait dotrix_math::MetricSpace [−][src]
pub trait MetricSpace {
type Metric: BaseFloat;
fn distance2(self, other: Self) -> Self::Metric;
fn distance(self, other: Self) -> Self::Metric { ... }
}
Expand description
A type with a distance function between values.
Examples are vectors, points, and quaternions.