~ubuntu-branches/ubuntu/vivid/psicode/vivid

« back to all changes in this revision

Viewing changes to src/bin/optking/bend.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck, Michael Banck, Daniel Leidert
  • Date: 2009-02-23 00:12:02 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090223001202-rutldoy3dimfpesc
Tags: 3.4.0-1
* New upstream release.

[ Michael Banck ]
* debian/patches/01_DESTDIR.dpatch: Refreshed.
* debian/patches/02_FHS.dpatch: Removed, applied upstream.
* debian/patches/03_debian_docdir: Likewise.
* debian/patches/04_man.dpatch: Likewise.
* debian/patches/06_466828_fix_gcc_43_ftbfs.dpatch: Likewise.
* debian/patches/07_464867_move_executables: Fixed and refreshed.
* debian/patches/00list: Adjusted.
* debian/control: Improved description.
* debian/patches-held: Removed.
* debian/rules (install/psi3): Do not ship the ruby bindings for now.

[ Daniel Leidert ]
* debian/rules: Fix txtdir via DEB_MAKE_INSTALL_TARGET.
* debian/patches/01_DESTDIR.dpatch: Refreshed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*! \file
 
2
    \ingroup OPTKING
 
3
    \brief Enter brief description of file here 
 
4
*/
 
5
 
 
6
#ifndef _psi3_bin_optking_bend_h_
 
7
#define _psi3_bin_optking_bend_h_
 
8
 
 
9
namespace psi { namespace optking {
1
10
 
2
11
class bend_class {
3
12
    int id;
148
157
        dot_arr(eBA,eBC,3,&dotprod);
149
158
    
150
159
        if (dotprod > 1.0) angle = 0.0;
151
 
        else if (dotprod < -1.0) angle = _pi;
 
160
        else if (dotprod < -1.0) angle = 180.0;
152
161
        else angle = acos(dotprod)*180.0/_pi;
153
162
    
154
163
        set_val(i,angle);
219
228
    }
220
229
};
221
230
 
 
231
}} /* namespace psi::optking */
 
232
 
 
233
#endif