示例#1
0
        public void Protected_IsPointInLineInterior()
        {
            XYPoint point = new XYPoint();

            Assert.AreEqual(false, AXYGeometryTools.AIsPointInLineInterior(new XYPoint(0, 0), new XYLine(0, 0, 1, 1)), "Test1");
            Assert.AreEqual(true, AXYGeometryTools.AIsPointInLineInterior(new XYPoint(0.5, 0.5), new XYLine(0, 0, 1, 1)), "Test2");
            Assert.AreEqual(false, AXYGeometryTools.AIsPointInLineInterior(new XYPoint(1, 1), new XYLine(0, 0, 1, 1)), "Test3");
            Assert.AreEqual(false, AXYGeometryTools.AIsPointInLineInterior(new XYPoint(0.5, 0), new XYLine(0, 0, 1, 1)), "Test4");
            Assert.AreEqual(false, AXYGeometryTools.AIsPointInLineInterior(new XYPoint(20, 40), new XYLine(20, 40, 20, 0)), "Test5");
        }