From ad2fe0f0f0d7152a78b2edf371c8c59d8aa7111e Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sun, 25 Dec 2022 22:25:29 -0600 Subject: [PATCH] feat(vector): add element constructor for C4Vector --- tempest/vector/C4Vector.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tempest/vector/C4Vector.hpp b/tempest/vector/C4Vector.hpp index df630fd..a24c772 100644 --- a/tempest/vector/C4Vector.hpp +++ b/tempest/vector/C4Vector.hpp @@ -8,6 +8,14 @@ class C4Vector { float y = 0.0f; float z = 0.0f; float w = 0.0f; + + // Member functions + C4Vector() = default; + C4Vector(float x, float y, float z, float w) + : x(x) + , y(y) + , z(z) + , w(w) {}; }; #endif