示例#1
0
        public void GetIntersection_WLine_SecondLineVertical()
        {
            //arrange
            Geometry.MarginOfError   = 0.001;
            Geometry.CoordinatePlane = Geometry.CoordinatePlanes.Screen;
            WLine a = new WLine(new WPoint(36.3639, 305.3639), new WPoint(30, 129));
            WLine b = new WLine(new WPoint(39, 129), new WPoint(39, 171));
            //act
            Intersection result = a.GetIntersection(b);

            //assert
            Assert.IsTrue(result.IsPoint);
        }