Skip to main content

distance

Function distance 

Source
pub fn distance<T>(a: &Vector3<T>, b: &Vector3<T>) -> T
where T: Float + Scalar + ComplexField<RealField = T>,
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.