Asy-Atoms
An asymptote package for rendering atomic structures
Public Member Functions | Data Fields
Bond Struct Reference

Structure with the bond information needed to render an atomic bond. More...

Collaboration diagram for Bond:
Collaboration graph
[legend]

Public Member Functions

void operator init (Atom atom_1, Atom atom_2)
 Constructor with atoms. More...
 
void draw (real max_dist=infinity, real min_dist=0, real radius=6, light l=currentlight)
 Draw the bond between atoms a1 and a2. More...
 

Data Fields

Atom a1
 
Atom a2
 Atoms to draw a bond in between of.
 
real infinity = 1000000000
 Maximum distance over which no bond can be drawn.
 

Detailed Description

Structure with the bond information needed to render an atomic bond.

Member Function Documentation

void Bond::draw ( real  max_dist = infinity,
real  min_dist = 0,
real  radius = 6,
light  l = currentlight 
)
inline

Draw the bond between atoms a1 and a2.

Parameters
max_distDraw if the distance between them is less than max_dist
min_distDraw if the distance between them is greater than min_dist
radiusRadius of the bond
lightCustom light for the bond
void Bond::operator init ( Atom  atom_1,
Atom  atom_2 
)
inline

Constructor with atoms.

Parameters
atom_1First atom
atom_2Second atom

The documentation for this struct was generated from the following file: