sknano.core.atoms.Bond

class sknano.core.atoms.Bond(atom1, atom2)[source][source]

Abstract representation of bond between 2 Atom objects.

Parameters:atom1, atom2 : Atom instances

Attributes

atom1 Atom 1 in Bond.
atom2 Atom 2 in Bond.
atoms Atoms in Bond.
centroid centroid of Bond atoms.
fmtstr Format string.
length Bond length.
unit_vector Bond unit_vector.
vector Bond Vector.

Methods

rotate(**kwargs) Rotate the bond by rotating the atoms.
todict()