X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmathconstants.h;fp=src%2Fmathconstants.h;h=42f4940343c5119aa97867f63e225e01f643657e;hb=7fde5a077bc9bbce28662fa2e5aa5043f3b4747f;hp=0000000000000000000000000000000000000000;hpb=0c01fa32c7e0629ae61992e0419f03724fc18487;p=ttedit diff --git a/src/mathconstants.h b/src/mathconstants.h new file mode 100644 index 0000000..42f4940 --- /dev/null +++ b/src/mathconstants.h @@ -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 +// +// 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) +