Beispiel #1
0
        public SerializedHumanPose DeepCopy()
        {
            SerializedHumanPose n = (SerializedHumanPose)this.MemberwiseClone();

            n.muscles = new float[this.muscles.Length];
            this.muscles.CopyTo(n.muscles, 0);
            return(n);
        }
Beispiel #2
0
        public static SerializedHumanPose New()
        {
            var n = new SerializedHumanPose();

            n.bodyPosition = Vector3.zero;
            n.bodyRotation = Quaternion.identity;
            n.muscles      = new float[HumanTrait.MuscleCount];
            return(n);
        }
Beispiel #3
0
 public void Add(long videoFrame, ref SerializedHumanPose pose)
 {
     if (keys == null)
     {
         keys = new List <long>();
     }
     keys.Add(videoFrame);
     if (poses == null)
     {
         poses = new List <SerializedHumanPose>();
     }
     poses.Add(pose);
     samples++;
 }
Beispiel #4
0
 public HumanPosePosture(string name)
 {
     this.name = name;
     this.pose = new SerializedHumanPose();
 }
Beispiel #5
0
 public HumanPosePosture(string name, ref HumanPose pose)
 {
     this.name = name;
     this.pose = new SerializedHumanPose(ref pose);
 }