Beispiel #1
0
 /**
  * @covers tarcisio\p2d\Line::slope
  */
 public function testSlope()
 {
     $line = new Line(10, 10, 20, 20);
     $this->assertEquals(1, $line->slope());
     $line = new Line(10, 10, 20, 5);
     $this->assertEquals(-0.5, $line->slope());
 }