rayzor
diff src/vmath.h @ 15:be616b58df99
continued the renderer slightly
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 13 Apr 2014 09:54:36 +0300 |
parents | d94a69933a71 |
children | 79609d482762 |
line diff
1.1 --- a/src/vmath.h Sun Apr 13 08:06:21 2014 +0300 1.2 +++ b/src/vmath.h Sun Apr 13 09:54:36 2014 +0300 1.3 @@ -4,6 +4,9 @@ 1.4 #include <math.h> 1.5 #include "vmathmat.h" 1.6 1.7 +#define DEG2RAD(x) (M_PI * (x) / 180.0) 1.8 +#define RAD2DEG(x) (180.0 * (x) / M_PI) 1.9 + 1.10 class Vector3 { 1.11 public: 1.12 float x, y, z;