Data storage of a hand.
Angle estimation is performed thanks to both sights S0 (wrist) and S9 (middle finger mcp). - angle is 0 degree if: x0 = x9 ; y0 <= y9 - angle is 180 degrees if: x0 = x9 ; y0 > y9 Size estimation is performed thanks to both sights S0 and S9 too.
Estimations from coordinates in a picture:
A---------------------S9 | / | / | / | / S0
S0 = (x0, y0) S9 = (x9, y9) A = (x0, y9)
Let's introduce: - a: the distance between S0 and S9 to be estimated - b: the distance between A and S9: abs(y9 - y0) - c: the distance between A and S0: abs(x9 - x0) - alpha = angle A = 90 degrees - beta = angle S0 to be estimated
then: a = sqrt(bb - cc) [pythagore] beta = arccos( (cc + aa - bb) / (2c*a) )
