isFlatHand property
bool
get
isFlatHand
Whether the hand is completely open and flat (all tips extended far from palm).
Implementation
bool get isFlatHand {
final palm = palmPosition;
if (palm == null) return false;
final tips = [
HandJoint.thumbTip,
HandJoint.indexTip,
HandJoint.middleTip,
HandJoint.ringTip,
HandJoint.littleTip,
];
for (final tip in tips) {
final pos = joints[tip];
if (pos == null || (pos - palm).length < 0.065) return false;
}
return true;
}