Trait truck_geometry::base::cgmath::prelude::MetricSpace
source · pub trait MetricSpace: Sized {
type Metric;
// Required method
fn distance2(self, other: Self) -> Self::Metric;
// Provided method
fn distance(self, other: Self) -> Self::Metric
where Self::Metric: Float { ... }
}
Expand description
A type with a distance function between values.
Examples are vectors, points, and quaternions.
Required Associated Types§
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.