예제 #1
0
 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);
 }
예제 #2
0
 private static bool InVerticalElbowSection(this JointType hand, Body body)
 {
     return(!hand.AboveElbowSection(body) && !hand.BelowElbowSection(body));
 }