radtools.Crystal.get_distance#
method
- Crystal.get_distance(atom1: Atom | str, atom2: Atom | str, R=(0, 0, 0))[source]#
Getter for distance between the atom1 and atom2.
- Parameters:
- atom1
Atomor str :py:class`.Atom` object or atom`s name in (0, 0, 0) unit cell. If name, then it has to be unique among atoms of the crystal.
- atom2
Atomor str :py:class`.Atom` object or atom`s name in
Runit cell. If name, then it has to be unique among atoms of the crystal.- R(3,) array-like, default (0, 0, 0)
Radius vector of the unit cell for atom2 (i,j,k).
- atom1
- Returns:
- distancefloats
Distance between atom1 in (0,0,0) cell and atom2 in R cell.