|
@@ -82,7 +82,7 @@ namespace bbiwarg.Recognition.PalmRecognition
|
|
|
Vector2D directionWristFingers = thumbDefect.VectorLong.normalize();
|
|
|
Vector2D directionUpperLower = thumbDefect.VectorLong.getOrthogonal(side == HandSide.Right).normalize();
|
|
|
Vector2D wristLower = wristUpper.moveWithinBound(directionUpperLower, palmWidth);
|
|
|
- Vector2D fingersLower = (wristUpper + 0.75f * palmLength * directionWristFingers + 0.75f * palmWidth * directionUpperLower).moveInBound((directionUpperLower + directionWristFingers).normalize());
|
|
|
+ Vector2D fingersLower = (wristUpper + 0.75f * palmLength * directionWristFingers + 0.75f * palmWidth * directionUpperLower).moveInBound((directionUpperLower + directionWristFingers).getInverse().normalize());
|
|
|
|
|
|
return new Palm(hand, thumbDefect, side, wristUpper, fingersUpper, fingersLower, wristLower);
|
|
|
}
|