40 |
|
#include "math/SquareMatrix3.hpp" |
41 |
|
#include "math/Vector3.hpp" |
42 |
|
#include "utils/PropertyMap.hpp" |
43 |
+ |
#include "brains/Snapshot.hpp" |
44 |
|
#include "brains/SnapshotManager.hpp" |
45 |
|
namespace oopse{ |
46 |
|
|
454 |
|
* Returns the previous unit vectors of this stuntdouble |
455 |
|
* @return the unit vectors of this stuntdouble |
456 |
|
*/ |
457 |
< |
Vector3d getPrevUnitVector() { |
458 |
< |
return ((snapshotMan_->getPrevSnapshot())->*storage_).unitVector[localIndex_]; |
457 |
> |
RotMat3x3d getPrevUnitFrame() { |
458 |
> |
return ((snapshotMan_->getPrevSnapshot())->*storage_).unitFrame[localIndex_]; |
459 |
|
} |
460 |
|
|
461 |
|
/** |
462 |
|
* Returns the current unit vectors of this stuntdouble |
463 |
|
* @return the unit vectors of this stuntdouble |
464 |
|
*/ |
465 |
< |
Vector3d getUnitVector() { |
466 |
< |
return ((snapshotMan_->getCurrentSnapshot())->*storage_).unitVector[localIndex_]; |
465 |
> |
RotMat3x3d getUnitFrame() { |
466 |
> |
return ((snapshotMan_->getCurrentSnapshot())->*storage_).unitFrame[localIndex_]; |
467 |
|
} |
468 |
|
|
469 |
|
/** |
472 |
|
* @return the unit vectors of this stuntdouble |
473 |
|
* @param snapshotNo |
474 |
|
*/ |
475 |
< |
Vector3d getUnitVector(int snapshotNo) { |
476 |
< |
return ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).unitVector[localIndex_]; |
475 |
> |
RotMat3x3d getUnitFrame(int snapshotNo) { |
476 |
> |
return ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).unitFrame[localIndex_]; |
477 |
|
} |
478 |
|
|
479 |
|
/** |