Example #1
0
        public void VectorMath_FindOnePointInTheListClosest2FixPoint_01()
        {
            Point         fixPoint  = new Point(2, 2);
            IList <Point> pointList = new List <Point>();

            pointList.Add(new Point(3, 3));
            pointList.Add(new Point(3, 2));
            pointList.Add(new Point(2, 3));
            IList <Point> resultList = VectorMath.FindPointsInTheListClosest2FixPoint(fixPoint, pointList);

            Assert.AreEqual(2, resultList.Count);
        }