Пример #1
0
 public indivJoint(Skeleton skel, JointType a, String id)
 {
     name = id;
     skeleton = skel;
     type = a;
     status = false;
     isDefined = true;
     posReg = new position_Register();
     j0 = skeleton.Joints[type];
     loc = new Point3(type.ToString(), j0.Position.X, j0.Position.Y, j0.Position.Z);
 }
Пример #2
0
        public jPair(Skeleton skel, JointType a, JointType b, String id)
        {
            name = id;
            skeleton = skel;
            jointType0 = a;
            jointType1 = b;

            pairStatus = false;
            distReg = new distance_register();

            joint0 = skeleton.Joints[jointType0];
            joint1 = skeleton.Joints[jointType1];
            isDefined = 1;
            firstPoint = new Point3(jointType0.ToString(), joint0.Position.X, joint0.Position.Y, joint0.Position.Z);
            secondPoint = new Point3(jointType1.ToString(), joint1.Position.X, joint1.Position.Y, joint1.Position.Z);
            pair = new Point3Pair(firstPoint, secondPoint);
            pair.distance();
            pair.findtheta();
        }
Пример #3
0
 //Constructor
 public Point3Pair(Point3 firstPoint, Point3 secondPoint)
 {
     one = firstPoint;
     two = secondPoint;
 }