Пример #1
0
 public function testVectorRotateCounterClockwise()
 {
     $vector = new ezcGraphVector(1, 2);
     $result = $vector->rotateCounterClockwise();
     $this->assertEquals($result, new ezcGraphVector(2, -1));
     $this->assertEquals($result, $vector, 'Result should be the vector itself');
 }