diff options
author | Lioncash <mathew1800@gmail.com> | 2018-05-02 03:25:20 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-05-02 03:25:25 +0200 |
commit | acc10c7ee2b6c50080b2534ec1e50da9edc477cb (patch) | |
tree | 5a89af2e4354f6512ac89198456db44cf1732b57 /src | |
parent | Merge pull request #429 from Subv/ioctl_corruption (diff) | |
download | yuzu-acc10c7ee2b6c50080b2534ec1e50da9edc477cb.tar yuzu-acc10c7ee2b6c50080b2534ec1e50da9edc477cb.tar.gz yuzu-acc10c7ee2b6c50080b2534ec1e50da9edc477cb.tar.bz2 yuzu-acc10c7ee2b6c50080b2534ec1e50da9edc477cb.tar.lz yuzu-acc10c7ee2b6c50080b2534ec1e50da9edc477cb.tar.xz yuzu-acc10c7ee2b6c50080b2534ec1e50da9edc477cb.tar.zst yuzu-acc10c7ee2b6c50080b2534ec1e50da9edc477cb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/vector_math.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/common/vector_math.h b/src/common/vector_math.h index 3f15ac1f4..cca43bd4c 100644 --- a/src/common/vector_math.h +++ b/src/common/vector_math.h @@ -52,8 +52,8 @@ static inline Vec4<T> MakeVec(const T& x, const T& y, const T& z, const T& w); template <typename T> class Vec2 { public: - T x; - T y; + T x{}; + T y{}; Vec2() = default; Vec2(const T& _x, const T& _y) : x(_x), y(_y) {} @@ -192,9 +192,9 @@ inline float Vec2<float>::Normalize() { template <typename T> class Vec3 { public: - T x; - T y; - T z; + T x{}; + T y{}; + T z{}; Vec3() = default; Vec3(const T& _x, const T& _y, const T& _z) : x(_x), y(_y), z(_z) {} @@ -392,10 +392,10 @@ typedef Vec3<float> Vec3f; template <typename T> class Vec4 { public: - T x; - T y; - T z; - T w; + T x{}; + T y{}; + T z{}; + T w{}; Vec4() = default; Vec4(const T& _x, const T& _y, const T& _z, const T& _w) : x(_x), y(_y), z(_z), w(_w) {} |