| 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!" |
| 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(){ |