summaryrefslogtreecommitdiff
path: root/tikzit/src/common/util.h
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/util.h
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/util.h')
-rw-r--r--tikzit/src/common/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tikzit/src/common/util.h b/tikzit/src/common/util.h
index 809e8ea..d868903 100644
--- a/tikzit/src/common/util.h
+++ b/tikzit/src/common/util.h
@@ -160,6 +160,11 @@ float roundToNearest(float stepSize, float val);
float radiansToDegrees(float radians);
/*!
+ @brief Convert degrees into radians
+ */
+float degreesToRadians(float degrees);
+
+/*!
@brief Normalises an angle (in degrees) to fall between -179 and 180
*/
int normaliseAngleDeg (int degrees);