More flexible conversion constructior from CVector2f->CVector3f

This commit is contained in:
Jack Andersen 2019-02-10 10:58:27 -10:00
parent e32914074a
commit 2041ec3156
1 changed files with 2 additions and 2 deletions

View File

@ -55,9 +55,9 @@ public:
CVector3f(const float* floats) : mSimd(floats[0], floats[1], floats[2]) {}
CVector3f(const CVector2f& other) {
CVector3f(const CVector2f& other, float z = 0.f) {
mSimd = other.mSimd;
mSimd[2] = 0.0f;
mSimd[2] = z;
mSimd[3] = 0.0f;
}