From 3d6218a9d246c07cc974397f91d9f94b15fa3e85 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 29 Nov 2015 14:21:26 -1000 Subject: [PATCH] Added CVector2f::assign --- include/CVector2f.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/CVector2f.hpp b/include/CVector2f.hpp index 52f90bd..d0d4eac 100644 --- a/include/CVector2f.hpp +++ b/include/CVector2f.hpp @@ -34,7 +34,8 @@ class alignas(16) CVector2f #endif #endif CVector2f(float xy) {splat(xy);} - CVector2f(float x, float y) {v[0] = x; v[1] = y; v[2] = 0; v[3] = 0.0;} + void assign(float x, float y) {v[0] = x; v[1] = y; v[2] = 0; v[3] = 0.0;} + CVector2f(float x, float y) {assign(x, y);} #if ZE_ATHENA_TYPES CVector2f(Athena::io::IStreamReader& input) {