Exemplo n.º 1
0
        public void GetInitialSolutionAlongRationalEdge_82()
        {
            var solution = ConvexPolygonSolver.GetInitialSolutionAlongRationalEdge("41/68,58/71 27/68,58/71");

            //solution.CreateVisualizerForm(true).ShowDialog();
            solution.DestPoints.Should().Equal("41/68,58/71|109/68,58/71|109/68,-13/71|41/68,-13/71".Split('|').Select(Vector.Parse).ToArray());
        }
Exemplo n.º 2
0
        public void GetInitialSolutionAlongRationalEdge()
        {
            var solution = ConvexPolygonSolver.GetInitialSolutionAlongRationalEdge("1,2 1,3");

            //solution.CreateVisualizerForm(true).ShowDialog();
            solution.DestPoints.Should().Equal("1,2|1,3|0,3|0,2".Split('|').Select(Vector.Parse).ToArray());
        }
Exemplo n.º 3
0
        public void GetInitialSolutionAlongRationalEdge_6()
        {
            var solution = ConvexPolygonSolver.GetInitialSolutionAlongRationalEdge("15/29,-6/29 35/29,15/29");

            //solution.CreateVisualizerForm(true).ShowDialog();
            solution.DestPoints.Should().Equal("15/29,-6/29|35/29,15/29|14/29,35/29|-6/29,14/29".Split('|').Select(Vector.Parse).ToArray());
        }