MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / EstYawFrom5PointShape

Function EstYawFrom5PointShape

jni/stasm/pinstart.cpp:14–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12// 5pointpose.R on the training shapes and their reflections.
13
14static 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
30static void RotShapeInPlace(
31 Shape& shape, // io

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected