ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/SHAPES/RigidBody.cpp
(Generate patch)

Comparing trunk/SHAPES/RigidBody.cpp (file contents):
Revision 1282 by chrisfen, Mon Jun 21 15:10:29 2004 UTC vs.
Revision 1287 by chrisfen, Wed Jun 23 20:18:48 2004 UTC

# Line 322 | Line 322 | void RigidBody::calcRefCoords( ) {
322    transposeMat3(pAxisMat, pAxisRotMat);
323    
324    
325  for (i=0; i<myAtoms.size(); i++){
326    apos = refCoords[i];
327    printf("%f\t%f\t%f\n",apos[0],apos[1],apos[2]);
328  }
329    
325    //rotate the rigid body to the principle axis frame
326    for (i = 0; i < myAtoms.size(); i++) {
327      matVecMul3(pAxisRotMat, refCoords[i].vec, refCoords[i].vec);
328      myAtoms[i]->setPos(refCoords[i].vec);
334  }
335  
336  for (i=0; i<myAtoms.size(); i++){
337    apos = refCoords[i];
338    printf("%f\t%f\t%f\n",apos[0],apos[1],apos[2]);
329    }
330    
331    identityMat3(iMat);
# Line 546 | Line 536 | double RigidBody::getAtomEps(int index){
536    return myAtoms[index]->getEps();
537    
538   }
539 +
540 + char *RigidBody::getAtomBase(int index){
541 +  
542 +  return myAtoms[index]->getBase();
543 +  
544 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines