Kinect.KinectManager.GetJointTrackingState C# (CSharp) Method

GetJointTrackingState() public method

Gets the tracking state of the joint.
public GetJointTrackingState ( Int64 userId, int joint ) : KinectInterop.TrackingState
userId Int64 User ID
joint int Joint index
return KinectInterop.TrackingState
        public KinectInterop.TrackingState GetJointTrackingState(Int64 userId, int joint)
        {
            if (dictUserIdToIndex.ContainsKey(userId))
            {
                int index = dictUserIdToIndex[userId];

                if (index >= 0 && index < sensorData.bodyCount &&
                    bodyFrame.bodyData[index].bIsTracked != 0)
                {
                    if (joint >= 0 && joint < sensorData.jointCount)
                    {
                        return bodyFrame.bodyData[index].joint[joint].trackingState;
                    }
                }
            }

            return KinectInterop.TrackingState.NotTracked;
        }
KinectManager