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

Comparing branches/new_design/OOPSE-3.0/src/primitives/DirectionalAtom.cpp (file contents):
Revision 1692 by tim, Mon Nov 1 20:15:58 2004 UTC vs.
Revision 1775 by tim, Wed Nov 24 17:42:37 2004 UTC

# Line 38 | Line 38 | void DirectionalAtom::setPrevA(const RotMat3x3d& a) {
38  
39   void DirectionalAtom::setPrevA(const RotMat3x3d& a) {
40      ((snapshotMan_->getPrevSnapshot())->*storage_).aMat[localIndex_] = a;
41 <    ((snapshotMan_->getPrevSnapshot())->*storage_).unitVector[localIndex_] = a.inverse() * sU_.getColum(2);
41 >    ((snapshotMan_->getPrevSnapshot())->*storage_).unitFrame[localIndex_] = a.transpose() * sU_;
42   }
43  
44        
45   void DirectionalAtom::setA(const RotMat3x3d& a) {
46      ((snapshotMan_->getCurrentSnapshot())->*storage_).aMat[localIndex_] = a;
47 <    ((snapshotMan_->getCurrentSnapshot())->*storage_).unitVector[localIndex_] = a.inverse() * sU_.getColum(2);
47 >    ((snapshotMan_->getCurrentSnapshot())->*storage_).unitFrame[localIndex_] = a.transpose() * sU_;
48   }    
49      
50   void DirectionalAtom::setA(const RotMat3x3d& a, int snapshotNo) {
51      ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).aMat[localIndex_] = a;
52 <    ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).unitVector[localIndex_] = a.inverse() * sU_.getColum(2);    
52 >    ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).unitFrame[localIndex_] = a.transpose() * sU_;    
53   }    
54  
55   void DirectionalAtom::rotateBy(const RotMat3x3d& m) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines