Bond

class visualife.data.Bond(atom1, atom2, type='1')

Bases: object

Represents a single chemical bond between two atoms

Creates a bond between two atoms

Parameters:
  • atom1 (Atom object) – the first of the two bonded atoms
  • atom2 (Atom object) – the second of the two bonded atoms
  • type (char) – type of this bond: ‘1’, ‘2’ or ‘3’, for each bond order, respectively

Attributes Summary

atom1 Returns the first of the two bonded atoms
atom2 Returns the second of the two bonded atoms
type Returns a character denoting the type of this bond

Attributes Documentation

atom1

Returns the first of the two bonded atoms

atom2

Returns the second of the two bonded atoms

type

Returns a character denoting the type of this bond