public Joint this[nt.JointType j] { get { return(joints[j]); } set { joints[j] = value; } }
public Joint this[nt.JointType t] { get { return(joints[t]); } }
/// <summary> /// Creates a new joint with the given values /// </summary> /// <param name="pos">Joint position</param> /// <param name="confidence">Tracking confidence</param> /// <param name="jointType">Which joint this is</param> public Joint(Vector3 pos, float confidence, nt.JointType jointType = nt.JointType.None) { this.pos = pos; this.confidence = confidence; this.jointType = jointType; }