public void SlopeTest2() { var p = Geometrics.Slope(new Point(1, 3), new Point(2, 2)); Assert.AreEqual(-1, p); }
public void SlopeInfinity() { var p = Geometrics.Slope(new Point(1, 3), new Point(1, 7)); Assert.AreEqual(true, double.IsInfinity(p)); }
public void SlopeTestZero() { var p = Geometrics.Slope(new Point(4, 9), new Point(10, 9)); Assert.AreEqual(0, p); }