Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 6c78b19

Browse files
committed
Re-add the empty constructor.
Now Vector can only be constructed either without parameters or with two parameters, or by copy. Removed explicit keyword since it's no longer needed.
1 parent 010ac5e commit 6c78b19

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

System/Vector.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,21 @@ namespace RTE {
1717

1818
SerializableOverrideMethods
1919

20-
float m_X; //!< X value of this vector.
21-
float m_Y; //!< Y value of this vector.
20+
float m_X = 0.0F; //!< X value of this vector.
21+
float m_Y = 0.0F; //!< Y value of this vector.
2222

2323
#pragma region Creation
24+
/// <summary>
25+
/// Constructor method used to instantiate a Vector object with values (0, 0).
26+
/// </summary>
27+
Vector() {};
28+
2429
/// <summary>
2530
/// Constructor method used to instantiate a Vector object from X and Y values.
2631
/// </summary>
2732
/// <param name="inputX">Float defining the initial X value of this Vector.</param>
2833
/// <param name="inputY">Float defining the initial Y value of this Vector.</param>
29-
explicit Vector(const float inputX = 0.0F, const float inputY = 0.0F) :
34+
Vector(const float inputX, const float inputY) :
3035
m_X(inputX),
3136
m_Y(inputY) {};
3237

0 commit comments

Comments
 (0)