From a13928491e6a4da070b7767e744511203f47b59c Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Wed, 25 Nov 2015 21:35:11 -1000 Subject: [PATCH] Added CVector4f::assign() --- include/CVector4f.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/CVector4f.hpp b/include/CVector4f.hpp index 3116e79..5dce4bc 100644 --- a/include/CVector4f.hpp +++ b/include/CVector4f.hpp @@ -35,7 +35,8 @@ class alignas(16) CVector4f #endif CVector4f(float xyzw) {splat(xyzw);} - CVector4f(float x, float y, float z, float w) {v[0] = x; v[1] = y; v[2] = z; v[3] = w;} + void assign(float x, float y, float z, float w) {v[0] = x; v[1] = y; v[2] = z; v[3] = w;} + CVector4f(float x, float y, float z, float w) {assign(x, y, z, w);} CVector4f(const CColor& other); #if ZE_ATHENA_TYPES CVector4f(Athena::io::IStreamReader& input)