using KinectUtils; using Microsoft.Kinect; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace MyGestureBank { /// /// The left hand up posture. /// public class PostureHandUpLeft : Posture { public PostureHandUpLeft() { GestureName = "HandUpLeft"; } /// /// The test posture method. /// /// /// /// protected override bool TestPosture(Body body) { // Check if the left hand is above the left shoulder return body.Joints[JointType.HandLeft].Position.Y > body.Joints[JointType.SpineShoulder].Position.Y && body.Joints[JointType.HandRight].Position.Y < body.Joints[JointType.SpineShoulder].Position.Y && body.Joints[JointType.HandRight].Position.Y > body.Joints[JointType.SpineBase].Position.Y; } } }