private KinectJoint CreateJoint(JointType type) { var joints = Skeleton.Joints; var joint = new KinectJoint(joints[type], Skeleton.BoneOrientations[type]); return(joint); }
public KinectFrame(Skeleton skeleton) { Skeleton = skeleton; //Keep the joints Joints = new Dictionary <JointType, KinectJoint>(); foreach (Joint j in skeleton.Joints) { var kJoint = new KinectJoint(j, Skeleton.BoneOrientations[j.JointType]); Joints.Add(kJoint.Type, kJoint); } //Import Joints SetupJoints(); //SetUpBones(); }
public KinectBone(KinectJoint j0, KinectJoint j1) { Joint0 = j0; Joint1 = j1; }