Function vector_space::distance2

source ·
pub fn distance2<T: Sub>(a: T, b: T) -> <T::Output as VectorSpace>::Scalar
where T::Output: InnerSpace,
Expand description

The squared distance between two points.