Function distance

Source
pub fn distance(a: &Vector3d, b: &Vector3d) -> f64
Expand description

Calculate the shortest (Euclidean) distance between two Points.

@post for unit vectors: result <= 2

  • a, b the points.

returns the shortest (Euclidean) distance between the points.