deepstone

view src/vmath.h @ 21:00d84ab1ef26

switched to wacom
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 21 Sep 2013 18:17:55 +0300
parents 4a0e9ab12ad0
children 5ff8ce78059a
line source
1 #ifndef VMATH_H_
2 #define VMATH_H_
4 #include <math.h>
6 #ifndef M_PI
7 #define M_PI 3.1415926536
8 #endif
10 typedef struct {
11 float x, y, z, w;
12 } vec4_t;
14 typedef struct {
15 float x, y, z;
16 } vec3_t;
18 typedef struct {
19 float x, y;
20 } vec2_t;
23 #endif /* VMATH_H_ */