Пример #1
0
        public void SlopeTest2()
        {
            var p = Geometrics.Slope(new Point(1, 3), new Point(2, 2));

            Assert.AreEqual(-1, p);
        }
Пример #2
0
        public void SlopeInfinity()
        {
            var p = Geometrics.Slope(new Point(1, 3), new Point(1, 7));

            Assert.AreEqual(true, double.IsInfinity(p));
        }
Пример #3
0
        public void SlopeTestZero()
        {
            var p = Geometrics.Slope(new Point(4, 9), new Point(10, 9));

            Assert.AreEqual(0, p);
        }