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

Comparing trunk/OOPSE-2.0/src/constraints/ConstraintPair.hpp (file contents):
Revision 1930 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 2204 by gezelter, Fri Apr 15 22:04:00 2005 UTC

# Line 1 | Line 1
1 < /*
1 > /*
2   * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved.
3   *
4   * The University of Notre Dame grants you ("Licensee") a
# Line 48 | Line 48 | namespace oopse {
48   namespace oopse {
49  
50  
51 < /**
52 < * @class ConstraintPair
53 < * @todo document
54 < */
55 < class ConstraintPair {
51 >  /**
52 >   * @class ConstraintPair
53 >   * @todo document
54 >   */
55 >  class ConstraintPair {
56  
57 <    public:
57 >  public:
58  
59 <        ConstraintPair(ConstraintElem* elem1, ConstraintElem* elem2, double len)
60 <            : consElem1_(elem1), consElem2_(elem2), dist2(len*len) { }
59 >    ConstraintPair(ConstraintElem* elem1, ConstraintElem* elem2, double len)
60 >      : consElem1_(elem1), consElem2_(elem2), dist2(len*len) { }
61  
62 <        ~ConstraintPair() {
63 <            delete consElem1_;
64 <            delete consElem2_;
65 <        }
66 <        /** Return the first constraint elemet */
67 <        ConstraintElem* getConsElem1() {return consElem1_;}
62 >    ~ConstraintPair() {
63 >      delete consElem1_;
64 >      delete consElem2_;
65 >    }
66 >    /** Return the first constraint elemet */
67 >    ConstraintElem* getConsElem1() {return consElem1_;}
68  
69 <        /** Retunr the second constraint element */
70 <        ConstraintElem* getConsElem2() {return consElem2_;}
69 >    /** Retunr the second constraint element */
70 >    ConstraintElem* getConsElem2() {return consElem2_;}
71  
72 <        bool isMoved() { return consElem1_->getMoved() || consElem2_->getMoved(); }        
73 <        double getConsDistSquare() {return dist2;}
72 >    bool isMoved() { return consElem1_->getMoved() || consElem2_->getMoved(); }        
73 >    double getConsDistSquare() {return dist2;}
74  
75 <    private:
75 >  private:
76          
77 <        ConstraintElem* consElem1_;
78 <        ConstraintElem* consElem2_;        
79 <        double dist2;
80 < };
77 >    ConstraintElem* consElem1_;
78 >    ConstraintElem* consElem2_;        
79 >    double dist2;
80 >  };
81  
82   }
83  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines