summaryrefslogtreecommitdiffstats
path: root/src/math/vector.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/vector.php')
-rw-r--r--src/math/vector.php12
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;
}
OpenPOWER on IntegriCloud