public void LandingCheckTest7()
        {
            var line11 = new Line(2, -1, 1, false);
            var point  = new PointF(1.2f, 1.4f);
            var island = PointManipulator.isLand(line11, point);

            Assert.IsTrue(island);
        }
        public void LandingCheckTest2()
        {
            var line11 = new Line(3, 2, 12, false);
            var point  = new PointF(3, 2);
            var island = PointManipulator.isLand(line11, point);

            Assert.IsTrue(!island);
        }
Exemple #3
0
        private void BtnRes_Click(object sender, System.EventArgs e)
        {
            ExtractLines();
            polygon = PointManipulator.getFigurePoints(line1, line2, line3, panel1.Size).ToArray();

            txbMin.Text = FindSolution(PointManipulator.MinZ).ToString();
            lineMin     = InitLine(lineMin, PointManipulator.MinZ);

            txbMax.Text = FindSolution(PointManipulator.MaxZ).ToString();
            lineMax     = InitLine(lineMax, PointManipulator.MaxZ);

            isResPressed = true;
            panel1.Invalidate();
        }