Function euclidean_distance
Source pub fn euclidean_distance<P: GetXY + GetZ, Q: GetXY + GetZ>(a: &P, b: &Q) -> f64
Expand description
Find the euclidean distance between two points
§Parameters
Both points require the GetXY trait to be implemented
a: The first point
b: The second point
§Returns
f64: The distance between the two points