diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-04-26 10:43:23 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-04-26 10:43:23 +0000 |
commit | 1f98a107eef3f2208f7b409f085057cf78662991 (patch) | |
tree | 5534f2873cb770a6a6e3c4b87d0616c4b801d887 /src/renderer | |
parent | 2165dfa54ac706984b47e2358fef91c220e1481f (diff) | |
download | zetacomponents-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/renderer')
-rw-r--r-- | src/renderer/3d.php | 11 |
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 ), ), |