1 #ifndef VRMLLIB_TYPES_H
2 #define VRMLLIB_TYPES_H
3 
4 #include <vector>
5 
6 namespace vrmllib {
7 
8 struct vec2 {
9 	float x, y;
10 };
11 
12 struct vec3 {
13 	float x, y, z;
vec3vec314 	vec3() {}
vec3vec315 	vec3(float x_, float y_, float z_) : x(x_), y(y_), z(z_) {}
16 };
17 
18 struct col3 {
19 	float r, g, b;
col3col320 	col3() {}
col3col321 	col3(float r_, float g_, float b_) : r(r_), g(g_), b(b_) {}
22 };
23 
24 class rot {
25 public:
rot()26 	rot() : vector(0,0,1), radians(0) {}
rot(float x,float y,float z,float r)27 	rot(float x, float y, float z, float r) : vector(x,y,z), radians(r) {}
28 
29 	vec3 vector;
30 	float radians;
31 };
32 
33 } // namespace vrmllib
34 
35 #endif
36