Skip to content

Commit 0adfaeb

Browse files
committed
Update CVector.h
1 parent 0263011 commit 0adfaeb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Shared/sdk/CVector.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,9 @@ class CVector
3030
float fY;
3131
float fZ;
3232

33-
struct NoInit{};
34-
35-
CVector(NoInit) {}
36-
3733
constexpr CVector() : fX(0.0f), fY(0.0f), fZ(0.0f) {}
3834

39-
constexpr CVector(float x, float y, float z) : fX(x), fY(y), fZ(z) {}
35+
constexpr CVector(float x, float y = 0, float z = 0) : fX(x), fY(y), fZ(z) {}
4036

4137
constexpr CVector(const CVector4D& vec) noexcept : fX(vec.fX), fY(vec.fY), fZ(vec.fZ) {}
4238

0 commit comments

Comments
 (0)