Exemplo n.º 1
0
 /// <summary>
 /// Adds another HandData's values to this one's.
 /// </summary>
 /// <param name="adder">The object whose angles need to be added to this object's.</param>
 public void Add(HandData adder)
 {
     for (int i = 0; i < 22; i++)
     {
         this[i].Value += adder[i].Value;
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Clones a HandData's data into this one.
        /// </summary>
        /// <param name="data">The data that should be cloned.</param>
        public void Populate(HandData data)
        {
            int max = NR_FINGERS * NR_JOINTS + 2;

            // Copy it all over.
            for (int i = 0; i < max; i++)
            {
                this[i].Value = data[i].Radians;
            }
        }