| OLD | NEW |
| 1 // assert_equals can fail when comparing floats due to precision errors, so | 1 // assert_equals can fail when comparing floats due to precision errors, so |
| 2 // use assert_approx_equals with this constant instead | 2 // use assert_approx_equals with this constant instead |
| 3 var FLOAT_EPSILON = 0.0000001; | 3 var FLOAT_EPSILON = 0.0000001; |
| 4 |
| 5 // A valid VRPose for when we don't care about specific values |
| 6 var VALID_POSE = { |
| 7 position: [1.1, 2.2, 3.3], |
| 8 linearVelocity: [0.1, 0.2, 0.3], |
| 9 linearAcceleration: [0.0, 0.1, 0.2], |
| 10 orientation: [0.1, 0.2, 0.3, 0.4], |
| 11 angularVelocity: [1.1, 2.1, 3.1], |
| 12 angularAcceleration: [1.0, 2.0, 3.0] |
| 13 } |
| OLD | NEW |