ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/primitives/StuntDouble.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/primitives/StuntDouble.cpp (file contents):
Revision 1698 by chrisfen, Tue Nov 2 15:28:25 2004 UTC vs.
Revision 1709 by gezelter, Thu Nov 4 16:22:03 2004 UTC

# Line 531 | Line 531 | void StuntDouble::getEulerAngles(double eulers[3]){
531                 objType );
532        painCave.isFatal = 1;
533        simError();    
534  }
535 }
536
537 bool StuntDouble::isLinear() {
538  int i;
539  double momI[3][3];
540  bool linearTest = false;
541  double tolerance = 0.001;
542
543  getI(momI);
544  
545  for (i=0; i<3; i++){
546    if (momI[i][i]<tolerance){
547      linearTest = true;
548      zeroAxis = i;
549    }
534    }
551
552  return linearTest;
535   }
536  
537   double StuntDouble::getZangle(){

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines