Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function testAngleBetween() |
||
12 | { |
||
13 | // Arrange |
||
14 | $vector1 = new Vector(array(1, 0, 0)); |
||
15 | $vector2 = new Vector(array(0, 1, 0)); |
||
16 | |||
17 | // Act |
||
18 | $angle = VectorUtils::angleBetween($vector1, $vector2); |
||
19 | |||
20 | // Assert |
||
21 | $this->assertInternalType('float', $angle); |
||
22 | $this->assertEquals('1.5707963267948966', $angle); |
||
23 | } |
||
24 | } |
||
25 |