]> Shamusworld >> Repos - ttedit/blobdiff - src/mathconstants.h
Added rectangle point selection, canvas zooming.
[ttedit] / src / mathconstants.h
diff --git a/src/mathconstants.h b/src/mathconstants.h
new file mode 100644 (file)
index 0000000..42f4940
--- /dev/null
@@ -0,0 +1,23 @@
+// Mathematical Constants used by Architektonas
+//
+// Part of the Architektonas Project
+// (C) 2011 Underground Software
+// See the README and GPLv3 files for licensing and warranty information
+//
+// NOTE: Since this has no code associated with it, there is no corresponding
+//       .cpp file.
+//
+// JLH = James Hammons <jlhamm@acm.org>
+//
+// WHO  WHEN        WHAT
+// ---  ----------  ------------------------------------------------------------
+// JLH  04/01/2011  Created this file
+//
+
+#define PI                 3.14159265358979323846264338327
+#define PI_OVER_2          (PI / 2.0)
+#define PI3_OVER_2         ((3.0 * PI) / 2.0)
+#define PI_TIMES_2         (PI * 2.0)
+#define RADIANS_TO_DEGREES (180.0 / PI)
+#define DEGREES_TO_RADIANS (PI / 180.0)
+