Choreoh.Global.checkInitialize C# (CSharp) Method

checkInitialize() private static method

private static checkInitialize ( LinkedList moves ) : void
moves LinkedList
return void
        private static void checkInitialize(LinkedList<Skeleton> moves)
        {
            if (!canGesture)
                return;
            Joint rightHand = moves.First<Skeleton>().Joints[JointType.HandRight];
            Joint leftHand = moves.First<Skeleton>().Joints[JointType.HandLeft];
            Joint head = moves.First<Skeleton>().Joints[JointType.Head];
            if (rightHand.Position.Y > .05 + head.Position.Y && leftHand.Position.Y > .05 + head.Position.Y)
            {
                if (Math.Abs(rightHand.Position.X - leftHand.Position.X) > .3)
                {
                    initPos = !initPos;
                    canGesture = false;
                    lastGesture = "Initialized";
                    canGestureTimer.Start();
                    if (initPos == false)
                    {
                        initializeTimer.Start();
                    }
                    else
                    {
                        initPosOverlay = false;
                        initializeTimer.Stop();
                    }
                }
            }
        }