Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <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; }
 }
Ejemplo n.º 4
0
 /// <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; }
 }