| 6 |
|
class ConstraintAlgorithm; |
| 7 |
|
class ConstraintPair{ |
| 8 |
|
public: |
| 9 |
< |
~ConstraintPair() {} |
| 9 |
> |
virtual ~ConstraintPair() {} |
| 10 |
|
ConstraintElement* firstElem; |
| 11 |
|
ConstraintElement* secondElem; |
| 12 |
|
|
| 13 |
|
bool isMoved() {return firstElem->getMoved() || secondElem->getMoved();} |
| 14 |
|
virtual double getBondLength2() = 0; |
| 15 |
+ |
|
| 16 |
+ |
double getLamda() {return lamda;} |
| 17 |
+ |
void setLamda(double l) {lamda = l;} |
| 18 |
+ |
|
| 19 |
+ |
//double getDistance(); |
| 20 |
|
|
| 21 |
|
protected: |
| 22 |
|
ConstraintPair(ConstraintElement* ce1, ConstraintElement* ce2) : firstElem(ce1), secondElem(ce2){} |
| 23 |
+ |
|
| 24 |
+ |
private: |
| 25 |
+ |
double lamda; |
| 26 |
|
}; |
| 27 |
|
|
| 28 |
|
|