libkovan  1
The kovan standard library
types.hpp
Go to the documentation of this file.
1 #ifndef _TYPES_HPP_
2 #define _TYPES_HPP_
3 
4 template<typename T>
5 struct Vec3
6 {
7  Vec3();
8  Vec3(const T &x, const T &y, const T &z);
9 
10  T x;
11  T y;
12  T z;
13 };
14 
15 template<typename T>
17  : x(0.0f),
18  y(0.0f),
19  z(0.0f)
20 {
21 }
22 
23 
24 template<typename T>
25 Vec3<T>::Vec3(const T &x, const T &y, const T &z)
26  : x(x),
27  y(y),
28  z(z)
29 {
30 }
31 
34 typedef Vec3<int> Vec3d;
36 
37 #endif
T z
Definition: types.hpp:12
T x
Definition: types.hpp:10
Vec3()
Definition: types.hpp:16
Definition: types.hpp:5
Vec3< double > Vec3lf
Definition: types.hpp:33
T y
Definition: types.hpp:11
Vec3< float > Vec3f
Definition: types.hpp:32
Vec3< unsigned > Vec3u
Definition: types.hpp:35
Vec3< int > Vec3d
Definition: types.hpp:34