blob: c7e5232e430c96a4e0bce9f37204ee96c5670b26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef VECTOR3_H
#define VECTOR3_H
namespace Internal
{
template<typename T>
struct Vector3T
{
T x, y, z;
Vector3T(T x = 0, T y = 0, T z = 0)
{
this->x = x;
this->y = y;
this->z = z;
}
inline void Set(T x, T y, T z)
{
this->x = x;
this->y = y;
this->z = z;
}
static Vector3T zero;
static Vector3T one;
};
template<typename T>
Vector3T<T> Vector3T<T>::zero = Vector3T(0, 0, 0);
template<typename T>
Vector3T<T> Vector3T<T>::one = Vector3T(1, 1, 1);
}
#endif
|