deepstone
annotate src/vmath.h @ 22:1f26cc6c6204
changed the binary name
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 21 Sep 2013 18:18:31 +0300 |
parents | 4a0e9ab12ad0 |
children | 5ff8ce78059a |
rev | line source |
---|---|
nuclear@15 | 1 #ifndef VMATH_H_ |
nuclear@15 | 2 #define VMATH_H_ |
nuclear@15 | 3 |
nuclear@21 | 4 #include <math.h> |
nuclear@21 | 5 |
nuclear@21 | 6 #ifndef M_PI |
nuclear@21 | 7 #define M_PI 3.1415926536 |
nuclear@21 | 8 #endif |
nuclear@21 | 9 |
nuclear@15 | 10 typedef struct { |
nuclear@15 | 11 float x, y, z, w; |
nuclear@15 | 12 } vec4_t; |
nuclear@15 | 13 |
nuclear@15 | 14 typedef struct { |
nuclear@15 | 15 float x, y, z; |
nuclear@15 | 16 } vec3_t; |
nuclear@15 | 17 |
nuclear@15 | 18 typedef struct { |
nuclear@15 | 19 float x, y; |
nuclear@15 | 20 } vec2_t; |
nuclear@15 | 21 |
nuclear@15 | 22 |
nuclear@15 | 23 #endif /* VMATH_H_ */ |