summaryrefslogtreecommitdiff
path: root/tikzit/src/common/Shape.m
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2012-05-24 12:36:48 +0100
committerAlex Merry <alex.merry@cs.ox.ac.uk>2012-05-24 12:36:48 +0100
commit7edfc757be29bd29111b898dfc87fb1b258920a3 (patch)
tree9a8f2ab2f285999316570236df321baaf39324da /tikzit/src/common/Shape.m
parent5dcbea7d268bf1be9548226665bce6a24e2e9d55 (diff)
Fix RegularPolyShape rotation to match TikZ
In PGF/TikZ, regular polygons with rotation 0 have a side flat at the bottom. RegularPolyShape now does the same, and also takes its rotation in degrees.
Diffstat (limited to 'tikzit/src/common/Shape.m')
-rw-r--r--tikzit/src/common/Shape.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/tikzit/src/common/Shape.m b/tikzit/src/common/Shape.m
index b74a9fc..0f1b35b 100644
--- a/tikzit/src/common/Shape.m
+++ b/tikzit/src/common/Shape.m
@@ -110,8 +110,8 @@ NSDictionary *shapeDictionary = nil;
[[CircleShape alloc] init],
[[RectangleShape alloc] init],
[[DiamondShape alloc] init],
- [[RegularPolyShape alloc] initWithSides:3 rotation:(M_PI/2.0f)],
- [[RegularPolyShape alloc] initWithSides:3 rotation:(-M_PI/2.0f)]};
+ [[RegularPolyShape alloc] initWithSides:3 rotation:0],
+ [[RegularPolyShape alloc] initWithSides:3 rotation:180]};
NSMutableDictionary *shapeDict = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
shapes[0], SHAPE_CIRCLE,
shapes[1], SHAPE_RECTANGLE,