private static GestureResult ElbowAboveRegion(this JointType hand, Body body, bool OneHand = true) { if (hand.InHorizontalElbowSection(body)) { if (hand.AboveElbowSection(body)) { return(GestureResult.SUCEEDED); } if (OneHand) { return(GestureResult.PAUSED); } } return(GestureResult.FAILED); }
private static bool InVerticalElbowSection(this JointType hand, Body body) { return(!hand.AboveElbowSection(body) && !hand.BelowElbowSection(body)); }