public void TranslateTest()
 {
     IavaSkeletonPoint original = new IavaSkeletonPoint(); // TODO: Initialize to an appropriate kinectFrame
     IavaSkeletonPoint translation = new IavaSkeletonPoint(); // TODO: Initialize to an appropriate kinectFrame
     IavaSkeletonPoint expected = new IavaSkeletonPoint(); // TODO: Initialize to an appropriate kinectFrame
     IavaSkeletonPoint actual;
     actual = Geometry.Translate(original, translation);
     Assert.AreEqual(expected, actual);
 }
 public void Magnitude3DTest()
 {
     IavaSkeletonPoint point1 = new IavaSkeletonPoint(); // TODO: Initialize to an appropriate kinectFrame
     IavaSkeletonPoint point2 = new IavaSkeletonPoint(); // TODO: Initialize to an appropriate kinectFrame
     double expected = 0F; // TODO: Initialize to an appropriate kinectFrame
     double actual;
     actual = Geometry.Magnitude3D(point1, point2);
     Assert.AreEqual(expected, actual);
 }
        /// <summary>
        /// Adds two IavaSkeletonPoint instances.
        /// </summary>
        /// <param name="point1">A IavaSkeletonPoint to compare to add.</param>
        /// <param name="point2">A IavaSkeletonPoint to compare to add.</param>
        /// <returns>The resulting IavaSkeletonPoint of the addition operator.</returns>
        public static IavaSkeletonPoint operator +(IavaSkeletonPoint point1, IavaSkeletonPoint point2)
        {
            IavaSkeletonPoint returnPoint = new IavaSkeletonPoint();

            // Subtract the points
            returnPoint.X = point1.X + point2.X;
            returnPoint.Y = point1.Y + point2.Y;
            returnPoint.Z = point1.Z + point2.Z;

            // Return the sum
            return returnPoint;
        }
        /// <summary>
        /// Subtracts two IavaSkeletonPoint instances.
        /// </summary>
        /// <param name="point1">A IavaSkeletonPoint to compare to subtract.</param>
        /// <param name="point2">A IavaSkeletonPoint to compare to subtract.</param>
        /// <returns>The resulting IavaSkeletonPoint of the subtraction operator.</returns>
        public static IavaSkeletonPoint operator -(IavaSkeletonPoint point1, IavaSkeletonPoint point2)
        {
            IavaSkeletonPoint returnPoint = new IavaSkeletonPoint();

            // Subtract the points
            returnPoint.X = point1.X - point2.X;
            returnPoint.Y = point1.Y - point2.Y;
            returnPoint.Z = point1.Z - point2.Z;

            // Return the difference
            return returnPoint;
        }
        public void PositionTest()
        {
            try {
                IavaSkeleton skeleton = new IavaSkeleton();

                IavaSkeletonPoint point = new IavaSkeletonPoint() { X = 1.0f, Y = 2.0f, Z = 3.0f };

                // Set the Position
                skeleton.Position = point;

                // Make sure the property set correctly
                Assert.AreEqual(point, skeleton.Position);
            }
            catch (Exception ex) {
                Assert.Fail(ex.Message);
            }
        }
        public void PositionTest()
        {
            try {
                IavaJoint joint = new IavaJoint();

                IavaSkeletonPoint position = new IavaSkeletonPoint() { X = 0, Y = -1.3, Z = 7.8 };

                // Set the Position
                joint.Position = position;

                // Make sure the property set correctly
                Assert.AreEqual(position, joint.Position);
            }
            catch (Exception ex) {
                Assert.Fail(ex.Message);
            }
        }
 /// <summary>
 /// Creates a IavaBodyPart containing the specified JointType and position
 /// </summary>
 /// <param name="jointID">The JointType of the IavaBodyPart</param>
 /// <param name="position">Position of the IavaBodyPart</param>
 public IavaBodyPart(IavaJointType jointID, IavaSkeletonPoint position)
 {
     this.JointID = jointID;
     this.Position = position;
 }