ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/primitives/StuntDouble.hpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/primitives/StuntDouble.hpp (file contents):
Revision 1765 by tim, Mon Nov 22 20:55:52 2004 UTC vs.
Revision 1803 by tim, Tue Nov 30 17:54:22 2004 UTC

# Line 40 | Line 40
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  
# Line 453 | Line 454 | namespace oopse{
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         /**
# Line 471 | Line 472 | namespace oopse{
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         /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines