chemcoord.Cartesian.get_shortest_distance

Cartesian.get_shortest_distance(other)

Calculate the shortest distance between self and other

Parameters:Cartesian – other
Returns:Returns a tuple i, j, d with the following meaning:

i: The index on self that minimises the pairwise distance.

j: The index on other that minimises the pairwise distance.

d: The distance between self and other. (float)

Return type:tuple