DataStore.HumanSkeleton.HumanSkeleton C# (CSharp) Метод

HumanSkeleton() публичный Метод

Creates a HumanSkeleton from a list of joint positions
public HumanSkeleton ( List jointPositions ) : System
jointPositions List
Результат System
        public HumanSkeleton(List<double[]> jointPositions)
        {
            this.joints = new Dictionary<JointID, Joint>();
            JointPositions = new double[RealKinect.JOINT_ORDERING.Count][];
            for (int i = 0; i < RealKinect.JOINT_ORDERING.Count; i++)
            {
                JointPositions[i] = new double[3];
                double x = jointPositions[i][0];
                double y = jointPositions[i][1];
                double z = jointPositions[i][2];
                JointPositions[i][0] = x;
                JointPositions[i][1] = y;
                JointPositions[i][2] = z;
                joints.Add(RealKinect.JOINT_ORDERING[i], new Joint(x, y, z));
            }
        }

Same methods

HumanSkeleton::HumanSkeleton ( double jointPositions ) : System
HumanSkeleton::HumanSkeleton ( string line ) : System