Re: CCL:C source for dihedral angles



>   can anybody refer me to some C source code for calculating dihedral
 > angles.
 Pick up the Molecular Modeling Toolkit source code at
    http://starship.python.net/crew/hinsen/MMTK/
 or
    http://dirac.cnrs-orleans.fr/MMTK/
 and look at the file Src/bonded.c. The routine
 cosine_dihedral_evaluator() (at the end of the file) calculated
 dihedral angles and Amber-style dihedral potential terms from atomic
 positions. It OpenSource code, so you can freely use it in your own
 projects.
 --
 -------------------------------------------------------------------------------
 Konrad Hinsen                            | E-Mail: hinsen |-at-| cnrs-orleans.fr
 Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69
 Rue Charles Sadron                       | Fax:  +33-2.38.63.15.17
 45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
 France                                   | Nederlands/Francais
 -------------------------------------------------------------------------------