KinectV2Core.KinectCoreV2.convertJointType C# (CSharp) Method

convertJointType() private method

private convertJointType ( JointType jointType ) : KinectBase.JointType
jointType JointType
return KinectBase.JointType
        private KinectBase.JointType convertJointType(JointType jointType)
        {
            switch (jointType)
            {
                case JointType.SpineBase:
                {
                    return KinectBase.JointType.SpineBase;
                }
                case JointType.SpineMid:
                {
                    return KinectBase.JointType.SpineMid;
                }
                case JointType.Neck:
                {
                    return KinectBase.JointType.Neck;
                }
                case JointType.SpineShoulder:
                {
                    return KinectBase.JointType.SpineShoulder;
                }
                default:
                {
                    //Other than the first 3, everything is numbered the same so we can just cast it
                    return (KinectBase.JointType)jointType;
                }
            }
        }