view include/Math.h @ 5:f6e6f3c8f7eb

Vectors done
author Eris Caffee <discordia@eldalin.com>
date Sun, 04 Sep 2011 12:46:08 -0500
parents f4e384b966b9
children 11e216148d1c
line source
1 #ifndef MATH_H_
2 #define MATH_H_
4 #include "Vector.h"
6 namespace arda
7 {
9 ////////////////////////////////////////////////////////////////////////////////
10 // General notes:
11 //
12 // As much as possible is defined inline for performance.
13 // Using typedef'ed arrays for vectors and matrices necessitates a lot of
14 // redundant function names: scale2, scale3, scale4, for example.
15 // This is, however, perfectly in line with the implementation of OpenGL and
16 // allows the library to maintain optimal memory usage and performance. (I hope!)
17 // In any event, I think I could do far worse than to emulate the OpenGL
18 // working group - a group of people who have studied this for years and are
19 // experts in the field.
21 ////////////////////////////////////////////////////////////////////////////////
22 // Angles
24 namespace Angles
25 {
26 // This many decimals is enough to cover even IEEE quad precision (128 bit)
27 // reals. Run on PA-RISC lately? :)
28 const double PI = 3.14159265358979323846264338327950288;
29 }
31 } // namespace arda
33 #endif