ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/primitives/Bend.hpp
(Generate patch)

Comparing trunk/OOPSE-2.0/src/primitives/Bend.hpp (file contents):
Revision 2447 by gezelter, Fri Apr 15 22:04:00 2005 UTC vs.
Revision 2448 by tim, Wed Nov 16 23:10:02 2005 UTC

# Line 52 | Line 52 | namespace oopse {
52   #include "primitives/Atom.hpp"
53   #include "types/BendType.hpp"
54   namespace oopse {
55 + struct BendData {
56 +    double angle;
57 +    double potential;
58 + };
59  
60 + struct BendDataSet {
61 +    double deltaV;
62 +    BendData prev;
63 +    BendData curr;
64 + };
65 +
66    class Bend {
67    public:
68      Bend(Atom* atom1, Atom* atom2, Atom* atom3, BendType* bt)
69        : atom1_(atom1), atom2_(atom2), atom3_(atom3), bendType_(bt) {}
70  
71      virtual ~Bend() {}
72 <    virtual void calcForce();
72 >    virtual void calcForce(double& angle);
73          
74      double getPotential() {
75        return potential_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines