62 consElem2_(elem2), dist2(len * len), printForce_(printForce) {}
74 bool isMoved() {
return consElem1_->getMoved() || consElem2_->getMoved(); }
75 RealType getConsDistSquare() {
return dist2; }
76 void setConstraintForce(RealType frc) { force_ = frc; }
77 void addConstraintForce(RealType frc) { force_ += frc; }
78 void resetConstraintForce() { force_ = 0.0; }
79 RealType getConstraintForce() {
return force_; }
80 bool getPrintForce() {
return printForce_; }
83 ConstraintElem* consElem1_;
84 ConstraintElem* consElem2_;