Ejemplo n.º 1
0
 private static GestureResult ElbowBelowRegion(this JointType hand, Body body, bool OneHand = true)
 {
     if (hand.InHorizontalElbowSection(body))
     {
         if (hand.BelowElbowSection(body))
         {
             return(GestureResult.SUCEEDED);
         }
         if (OneHand)
         {
             return(GestureResult.PAUSED);
         }
     }
     return(GestureResult.FAILED);
 }
Ejemplo n.º 2
0
 private static bool InVerticalElbowSection(this JointType hand, Body body)
 {
     return(!hand.AboveElbowSection(body) && !hand.BelowElbowSection(body));
 }