/// <summary> /// Evaluates if a joint in the body is inferred /// </summary> /// <param name="jointType">Joint type to look for</param> /// <returns>Returns true if the joint is inferred or null, false if it is not or it isn't found</returns> public bool IsJointInferred(KinectJointType jointType) { return this[jointType] == null || this[jointType].TrackingState == KinectTrackingState.Inferred; }
/// <summary> /// Evaluates if a joint in the body is inferred /// </summary> /// <param name="jointType">Joint type to look for</param> /// <returns>Returns true if the joint is inferred or null, false if it is not or it isn't found</returns> public bool IsJointInferred(KinectJointType jointType) { return(this[jointType] == null || this[jointType].TrackingState == KinectTrackingState.Inferred); }
/// <summary> /// Indexes the joints by KinectJointType /// </summary> /// <param name="jointType">Joint type</param> /// <returns>Corresponding KinectJoint</returns> public KinectJoint this[KinectJointType jointType] { get { return Joints[(int) jointType]; } set { Joints[(int) jointType] = value; } }
/// <summary> /// Indexes the joints by KinectJointType /// </summary> /// <param name="jointType">Joint type</param> /// <returns>Corresponding KinectJoint</returns> public KinectJoint this[KinectJointType jointType] { get { return(Joints[(int)jointType]); } set { Joints[(int)jointType] = value; } }