public void KinectInitTest()
 {
     VectorAnalysis va = new VectorAnalysis();
     Assert.AreEqual(new Point3D(1, 0, 1), va.TrackerPos);
 }
Example #2
0
        /// <summary>
        /// Adds a new tracker to the room for tracking objects.
        /// </summary>
        /// <param name="angle">The angle of direction of the tracker (positive angles in a CCW direction).</param>
        /// <returns>Returns false if coordinates larger than room or negative numbers or if tracker is not null. Otherwise returns true.</returns>
        public bool AddTracker(string name, Point3D coord, double angle)
        {
            if (trackerList.Count > 0 || trackerList.ContainsKey(name) || coord.X > Width || coord.X < 0 || coord.Z > Length || coord.Z < 0)
                return false;

            VectorAnalysis va = new VectorAnalysis(coord.X, 0, coord.Z);
            va.InitSettings(angle);
            trackerList.Add(name, va);

            return true;
        }