Added CVector2f::assign

This commit is contained in:
Jack Andersen 2015-11-29 14:21:26 -10:00
parent 9885d34420
commit 3d6218a9d2
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ class alignas(16) CVector2f
#endif #endif
#endif #endif
CVector2f(float xy) {splat(xy);} 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 #if ZE_ATHENA_TYPES
CVector2f(Athena::io::IStreamReader& input) CVector2f(Athena::io::IStreamReader& input)
{ {