39 |
|
class RigidBody : public Atom { |
40 |
|
public: |
41 |
|
RigidBody(); |
42 |
+ |
|
43 |
+ |
/** |
44 |
+ |
* Sets the previous rotation matrix of this stuntdouble |
45 |
+ |
* @param a new rotation matrix |
46 |
+ |
*/ |
47 |
+ |
virtual void setPrevA(const RotMat3x3d& a); |
48 |
+ |
|
49 |
+ |
/** |
50 |
+ |
* Sets the current rotation matrix of this stuntdouble |
51 |
+ |
* @param a new rotation matrix |
52 |
+ |
*/ |
53 |
+ |
virtual void setA(const RotMat3x3d& a); |
54 |
+ |
/** |
55 |
+ |
* Sets the rotation matrix of this stuntdouble in specified snapshot |
56 |
+ |
* @param a rotation matrix to be set |
57 |
+ |
* @param snapshotNo |
58 |
+ |
* @see #getA |
59 |
+ |
*/ |
60 |
+ |
virtual void setA(const RotMat3x3d& a, int snapshotNo); |
61 |
+ |
|
62 |
|
/** |
63 |
|
* Returns the inertia tensor of this stuntdouble |
64 |
|
* @return the inertia tensor of this stuntdouble |
117 |
|
|
118 |
|
private: |
119 |
|
|
120 |
< |
Mat3x3d inertiaTensor_; |
120 |
> |
Mat3x3d inertiaTensor_; |
121 |
> |
RotMat3x3d sU_; /**< body fixed standard unit vector */ |
122 |
> |
|
123 |
|
vector<Atom*> atoms_; |
124 |
|
vector<Vector3d> refCoords; |
125 |
|
}; |