diff options
Diffstat (limited to 'src/math/vector.php')
-rw-r--r-- | src/math/vector.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/math/vector.php b/src/math/vector.php index efe44b3..85832bb 100644 --- a/src/math/vector.php +++ b/src/math/vector.php @@ -21,11 +21,11 @@ class ezcGraphVector extends ezcGraphCoordinate * * @return void */ - public function toLeft() + public function rotateCounterClockwise() { $tmp = $this->x; - $this->x = -$this->y; - $this->y = $tmp; + $this->x = $this->y; + $this->y = -$tmp; return $this; } @@ -35,11 +35,11 @@ class ezcGraphVector extends ezcGraphCoordinate * * @return void */ - public function toRight() + public function rotateClockwise() { $tmp = $this->x; - $this->x = $this->y; - $this->y = -$tmp; + $this->x = -$this->y; + $this->y = $tmp; return $this; } |