Example #1
0
        public void TestGetIntersect()
        {
            var r = new LinearEquation(0.75, 1.25);

            //the line determined by points p & q
            var ln       = new LinearEquation(-1.333333, 1.666667);
            var intesect = ln.GetIntersect(r);

            Console.WriteLine(intesect);

            Assert.IsTrue(new LinearEquation(0.2, 1.4).Equals(intesect));
        }