summaryrefslogtreecommitdiff
path: root/Runtime/Math/Vector4.h
blob: e56a1a72db38f3f7d189bd943904bee36a63f88b (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
#pragma once

namespace Internal
{
    template<typename T>
    struct Vector4T
    {
        T x, y, z, w;

        Vector4T(T x = 0, T y = 0, T z = 0, T w = 0)
        {
            this->x = x;
            this->y = y;
            this->z = z;
            this->w = w;
        }

        inline void Set(T x, T y, T z, T w)
        {
            this->x = x;
            this->y = y;
            this->z = z;
            this->w = w;
        }

        static Vector4T zero;
        static Vector4T one;
    };

    template<typename T>
    Vector4T<T> Vector4T<T>::zero = Vector4T(0, 0, 0, 0);
    template<typename T>
    Vector4T<T> Vector4T<T>::one = Vector4T(1, 1, 1, 1);

}