[−][src]Trait cgmath::prelude::MetricSpace
A type with a distance function between values.
Examples are vectors, points, and quaternions.
Associated Types
Loading content...Required methods
fn distance2(self, other: Self) -> Self::Metric
Returns the squared distance.
This does not perform an expensive square root operation like in
MetricSpace::distance
method, and so can be used to compare distances
more efficiently.