diff options
author | KT <tran0563@umn.edu> | 2021-09-06 19:07:33 -0500 |
---|---|---|
committer | KT <tran0563@umn.edu> | 2021-09-06 19:07:33 -0500 |
commit | cccd3186305915d92b1751dc616979d64116a4aa (patch) | |
tree | 5dd4834daef547cd45fc0b643f44a10b581de0ad /dev/a4-dance/rotation_bounds.cc | |
parent | Added missing images for the A6 worksheet (diff) | |
download | csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.gz csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.bz2 csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.lz csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.xz csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.zst csci4611-cccd3186305915d92b1751dc616979d64116a4aa.zip |
Upload a1
Diffstat (limited to '')
-rw-r--r-- | dev/a4-dance/rotation_bounds.cc | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/dev/a4-dance/rotation_bounds.cc b/dev/a4-dance/rotation_bounds.cc deleted file mode 100644 index a83b1ce..0000000 --- a/dev/a4-dance/rotation_bounds.cc +++ /dev/null @@ -1,64 +0,0 @@ -#include "rotation_bounds.h" -#include <cstdlib> - -RotationBounds::RotationBounds() { - dofRX = false; - dofRY = false; - dofRZ = false; - minRX = 0; - maxRX = 0; - minRY = 0; - maxRY = 0; - minRZ = 0; - maxRZ = 0; - dofs = 0; -} - -void RotationBounds::setdof(bool rx, bool ry, bool rz) { - dofRX = rx; - dofRY = ry; - dofRZ = rz; - dofs = rx + ry + rz; -} - -void RotationBounds::setR(int index, float min, float max) { - if (index > dofs) { - std::abort(); // Trying to set past the max index. - } - if (index == 0) { - if (dofRX) { - minRX = min; - maxRX = max; - } else if (dofRY) { - minRY = min; - maxRY = max; - } else if (dofRZ) { - minRZ = min; - maxRZ = max; - } else { - abort(); - } - } else if (index == 1) { - if (dofRX && dofRY) { - minRY = min; - maxRY = max; - } else if (dofRX && dofRZ) { - minRZ = min; - maxRZ = max; - } else if (dofRY && dofRZ) { - minRZ = min; - maxRZ = max; - } else { - abort(); - } - } else if (index == 2) { - if (dofRX && dofRY && dofRZ) { - minRZ = min; - maxRZ = max; - } else { - abort(); - } - } else { - abort(); - } -}
\ No newline at end of file |