| 12 | // 5pointpose.R on the training shapes and their reflections. |
| 13 | |
| 14 | static double EstYawFrom5PointShape(const double* x) // x has 10 elements (5 points) |
| 15 | { |
| 16 | return 34.342 |
| 17 | - 7.0267 * MAX(0, x[3] - -0.34708) |
| 18 | + 10.739 * MAX(0, -0.34708 - x[3]) |
| 19 | + 116.29 * MAX(0, x[4] - 0.21454) |
| 20 | - 159.56 * MAX(0, 0.21454 - x[4]) |
| 21 | + 12.513 * MAX(0, x[7] - 0.3384) |
| 22 | + 7.2764 * MAX(0, 0.3384 - x[7]) |
| 23 | + 260.14 * MAX(0, x[3] - -0.34708) * MAX(0, x[5] - -0.010838) |
| 24 | - 160.64 * MAX(0, x[3] - -0.34708) * MAX(0, -0.010838 - x[5]) |
| 25 | - 284.88 * MAX(0, -0.34708 - x[3]) * MAX(0, x[5] - -0.055581) |
| 26 | + 654.54 * MAX(0, -0.34708 - x[3]) * MAX(0, -0.055581 - x[5]) |
| 27 | ; |
| 28 | } |
| 29 | |
| 30 | static void RotShapeInPlace( |
| 31 | Shape& shape, // io |
no outgoing calls
no test coverage detected