summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-04-26 10:43:23 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-04-26 10:43:23 +0000
commit1f98a107eef3f2208f7b409f085057cf78662991 (patch)
tree5534f2873cb770a6a6e3c4b87d0616c4b801d887 /src
parent2165dfa54ac706984b47e2358fef91c220e1481f (diff)
downloadzetacomponents-graph-1f98a107eef3f2208f7b409f085057cf78662991.zip
zetacomponents-graph-1f98a107eef3f2208f7b409f085057cf78662991.tar.gz
- Fixed order of points in arrow head polygons also in 3d renderer
# No visual difference in compariosion files
Diffstat (limited to 'src')
-rw-r--r--src/renderer/3d.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/renderer/3d.php b/src/renderer/3d.php
index 4bb9c7c..a93f740 100644
--- a/src/renderer/3d.php
+++ b/src/renderer/3d.php
@@ -1938,23 +1938,26 @@ class ezcGraphRenderer3d extends ezcGraphRenderer
)
);
+ $orthogonalDirection = clone $direction;
+ $orthogonalDirection->rotateClockwise();
+
$this->driver->drawPolygon(
array(
$axisPolygonCoordinates[1],
new ezcGraphCoordinate(
$axisPolygonCoordinates[1]->x
- + $direction->y * $size / 2
+ - $orthogonalDirection->x * $size / 2
+ $direction->x * $size,
$axisPolygonCoordinates[1]->y
- + $direction->x * $size / 2
+ - $orthogonalDirection->y * $size / 2
+ $direction->y * $size
),
new ezcGraphCoordinate(
$axisPolygonCoordinates[1]->x
- - $direction->y * $size / 2
+ + $orthogonalDirection->x * $size / 2
+ $direction->x * $size,
$axisPolygonCoordinates[1]->y
- - $direction->x * $size / 2
+ + $orthogonalDirection->y * $size / 2
+ $direction->y * $size
),
),
OpenPOWER on IntegriCloud