# | Line 56 | Line 56 | namespace oopse { | |
---|---|---|
56 | ||
57 | public: | |
58 | ||
59 | < | ConstraintPair(ConstraintElem* elem1, ConstraintElem* elem2, double len) |
59 | > | ConstraintPair(ConstraintElem* elem1, ConstraintElem* elem2, RealType len) |
60 | : consElem1_(elem1), consElem2_(elem2), dist2(len*len) { } | |
61 | ||
62 | ~ConstraintPair() { | |
# | Line 70 | Line 70 | namespace oopse { | |
70 | ConstraintElem* getConsElem2() {return consElem2_;} | |
71 | ||
72 | bool isMoved() { return consElem1_->getMoved() || consElem2_->getMoved(); } | |
73 | < | double getConsDistSquare() {return dist2;} |
73 | > | RealType getConsDistSquare() {return dist2;} |
74 | ||
75 | private: | |
76 | ||
77 | ConstraintElem* consElem1_; | |
78 | ConstraintElem* consElem2_; | |
79 | < | double dist2; |
79 | > | RealType dist2; |
80 | }; | |
81 | ||
82 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |