@@ -17,37 +17,31 @@ namespace RTE {
17
17
18
18
SerializableOverrideMethods
19
19
20
- float m_X = 0 . 0F ; // !< X value of this vector.
21
- float m_Y = 0 . 0F ; // !< Y value of this vector.
20
+ float m_X; // !< X value of this vector.
21
+ float m_Y; // !< Y value of this vector.
22
22
23
23
#pragma region Creation
24
24
// / <summary>
25
25
// / Constructor method used to instantiate a Vector object with values (0, 0).
26
26
// / </summary>
27
- Vector () {} ;
27
+ Vector () = default ;
28
28
29
29
// / <summary>
30
30
// / Constructor method used to instantiate a Vector object from X and Y values.
31
31
// / </summary>
32
32
// / <param name="inputX">Float defining the initial X value of this Vector.</param>
33
33
// / <param name="inputY">Float defining the initial Y value of this Vector.</param>
34
- Vector (const float inputX, const float inputY) :
35
- m_X (inputX),
36
- m_Y (inputY) {};
37
-
38
- // / <summary>
39
- // / Copy constructor method used to instantiate a Vector object identical to an already existing one.
40
- // / </summary>
41
- // / <param name="reference">A Vector object which is passed in by reference.</param>
42
- Vector (const Vector &reference) = default ;
34
+ Vector (const float inputX, const float inputY) : m_X(inputX), m_Y(inputY) {};
43
35
#pragma endregion
44
36
45
- #pragma region Getters and Setters
37
+ #pragma region Destruction
46
38
// / <summary>
47
39
// / Sets both the X and Y of this Vector to zero.
48
40
// / </summary>
49
- void Reset () { m_X = 0 .0F ; m_Y = 0 .0F ; }
41
+ void Reset () override { m_X = 0 .0F ; m_Y = 0 .0F ; }
42
+ #pragma endregion
50
43
44
+ #pragma region Getters and Setters
51
45
// / <summary>
52
46
// / Gets the X value of this Vector.
53
47
// / </summary>
0 commit comments