[][src]Function acap::euclid::euclidean_distance

pub fn euclidean_distance<T, U>(x: T, y: U) -> EuclideanDistance<T::Value> where
    T: Coordinates,
    U: Coordinates<Value = T::Value>, 

Compute the Euclidean distance between two points.

\begin{aligned}
\mathrm{euclidean\_distance}(x, y) &= \|x - y\|_2 \\
&= \sqrt{\sum_i (x_i - y_i)^2}
\end{aligned}