30 |
|
* @version 1.0 |
31 |
|
*/ |
32 |
|
|
33 |
< |
#ifndef _STUNTDOUBLE_HPP_ |
34 |
< |
#define _STUNTDOUBLE_HPP_ |
33 |
> |
#ifndef PRIMITIVES_STUNTDOUBLE_HPP |
34 |
> |
#define PRIMITIVES_STUNTDOUBLE_HPP |
35 |
|
|
36 |
|
#include <vector> |
37 |
|
|
55 |
|
* provides an interface for the Integrators and Minimizers to use, |
56 |
|
* and does some preliminary sanity checking so that the program |
57 |
|
* doesn't try to do something stupid like torque an Atom |
58 |
< |
* @note the dynamoc data of stuntdouble will be stored outside of the class |
58 |
> |
* @note the dynamic data of stuntdouble will be stored outside of the class |
59 |
|
*/ |
60 |
|
class StuntDouble{ |
61 |
|
public: |
453 |
|
* Returns the previous unit vectors of this stuntdouble |
454 |
|
* @return the unit vectors of this stuntdouble |
455 |
|
*/ |
456 |
< |
Vector3d getPrevUnitVector() { |
457 |
< |
return ((snapshotMan_->getPrevSnapshot())->*storage_).unitVector[localIndex_]; |
456 |
> |
RotMat3x3d getPrevUnitFrame() { |
457 |
> |
return ((snapshotMan_->getPrevSnapshot())->*storage_).unitFrame[localIndex_]; |
458 |
|
} |
459 |
|
|
460 |
|
/** |
461 |
|
* Returns the current unit vectors of this stuntdouble |
462 |
|
* @return the unit vectors of this stuntdouble |
463 |
|
*/ |
464 |
< |
Vector3d getUnitVector() { |
465 |
< |
return ((snapshotMan_->getCurrentSnapshot())->*storage_).unitVector[localIndex_]; |
464 |
> |
RotMat3x3d getUnitFrame() { |
465 |
> |
return ((snapshotMan_->getCurrentSnapshot())->*storage_).unitFrame[localIndex_]; |
466 |
|
} |
467 |
|
|
468 |
|
/** |
471 |
|
* @return the unit vectors of this stuntdouble |
472 |
|
* @param snapshotNo |
473 |
|
*/ |
474 |
< |
Vector3d getUnitVector(int snapshotNo) { |
475 |
< |
return ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).unitVector[localIndex_]; |
474 |
> |
RotMat3x3d getUnitFrame(int snapshotNo) { |
475 |
> |
return ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).unitFrame[localIndex_]; |
476 |
|
} |
477 |
|
|
478 |
|
/** |
870 |
|
}; |
871 |
|
|
872 |
|
}//end namespace oopse |
873 |
< |
#endif //ifndef _STUNTDOUBLE_HPP_ |
873 |
> |
#endif //PRIMITIVES_STUNTDOUBLE_HPP |