blob: eee913b28fd6cf22ba1474295e349672914cdc8f (
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
|
#pragma once
template<typename T>
struct Vector3Template
{
T x, y, z;
Vector3Template(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 Vector3Template zero;
static Vector3Template one;
};
template<typename T>
Vector3Template<T> Vector3Template<T>::zero = Vector3Template(0, 0, 0);
template<typename T>
Vector3Template<T> Vector3Template<T>::one = Vector3Template(1, 1, 1);
using Vector3f = Vector3Template<float>;
|