Function vector_space::distance2
source · pub fn distance2<T: Sub>(a: T, b: T) -> <T::Output as VectorSpace>::Scalarwhere
T::Output: InnerSpace,
Expand description
The squared distance between two points.
pub fn distance2<T: Sub>(a: T, b: T) -> <T::Output as VectorSpace>::Scalarwhere
T::Output: InnerSpace,
The squared distance between two points.