Added CVector4f::assign()

This commit is contained in:
Jack Andersen 2015-11-25 21:35:11 -10:00
parent 24886ff8c7
commit a13928491e
1 changed files with 2 additions and 1 deletions

View File

@ -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)