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

Comparing trunk/OOPSE-2.0/src/primitives/StuntDouble.cpp (file contents):
Revision 1490 by gezelter, Fri Sep 24 04:16:43 2004 UTC vs.
Revision 1698 by chrisfen, Tue Nov 2 15:28:25 2004 UTC

# Line 1 | Line 1
1 < #include "StuntDouble.hpp"
2 < #include "Atom.hpp"
3 < #include "DirectionalAtom.hpp"
4 < #include "RigidBody.hpp"
5 < #include "simError.h"
1 > #include "primitives/StuntDouble.hpp"
2 > #include "primitives/Atom.hpp"
3 > #include "primitives/DirectionalAtom.hpp"
4 > #include "primitives/RigidBody.hpp"
5 > #include "utils/simError.h"
6  
7   /*  
8          "Don't move, or you're dead! Stand up! Captain, we've got them!"
# 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 +    }
550    }
551 +
552 +  return linearTest;
553   }
554  
555   double StuntDouble::getZangle(){

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines