Function unit_sphere::vector::distance
source ยท pub fn distance(a: &Vector3d, b: &Vector3d) -> f64Expand description
Calculate the shortest (Euclidean) distance between two Points.
@post for unit vectors: result <= 2
a,bthe points.
returns the shortest (Euclidean) distance between the points.