@@ -368,30 +368,30 @@ namespace RTE {
368
368
// / <param name="lhs">A Vector reference as the left hand side operand.</param>
369
369
// / <param name="rhs">A Vector reference as the right hand side operand.</param>
370
370
// / <returns>The resulting Vector.</returns>
371
- friend Vector operator +(const Vector &lhs, const Vector &rhs) { Vector returnVector (lhs.m_X + rhs.m_X , lhs.m_Y + rhs.m_Y ); return returnVector ; }
371
+ friend Vector operator +(const Vector &lhs, const Vector &rhs) { return Vector (lhs.m_X + rhs.m_X , lhs.m_Y + rhs.m_Y ); }
372
372
373
373
// / <summary>
374
374
// / Subtraction operator overload for Vectors.
375
375
// / </summary>
376
376
// / <param name="lhs">A Vector reference as the left hand side operand.</param>
377
377
// / <param name="rhs">A Vector reference as the right hand side operand.</param>
378
378
// / <returns>The resulting Vector.</returns>
379
- friend Vector operator -(const Vector &lhs, const Vector &rhs) { Vector returnVector (lhs.m_X - rhs.m_X , lhs.m_Y - rhs.m_Y ); return returnVector ; }
379
+ friend Vector operator -(const Vector &lhs, const Vector &rhs) { return Vector (lhs.m_X - rhs.m_X , lhs.m_Y - rhs.m_Y ); }
380
380
381
381
// / <summary>
382
382
// / Multiplication operator overload for a Vector and a float.
383
383
// / </summary>
384
384
// / <param name="rhs">A float reference as the right hand side operand.</param>
385
385
// / <returns>The resulting Vector.</returns>
386
- Vector operator *(const float &rhs) const { Vector returnVector (m_X * rhs, m_Y * rhs); return returnVector ; }
386
+ Vector operator *(const float &rhs) const { return Vector (m_X * rhs, m_Y * rhs); }
387
387
388
388
// / <summary>
389
389
// / Multiplication operator overload for Vectors.
390
390
// / </summary>
391
391
// / <param name="lhs">A Vector reference as the left hand side operand.</param>
392
392
// / <param name="rhs">A Vector reference as the right hand side operand.</param>
393
393
// / <returns>The resulting Vector.</returns>
394
- friend Vector operator *(const Vector &lhs, const Vector &rhs) { Vector returnVector (lhs.m_X * rhs.m_X , lhs.m_Y * rhs.m_Y ); return returnVector ; }
394
+ friend Vector operator *(const Vector &lhs, const Vector &rhs) { return Vector (lhs.m_X * rhs.m_X , lhs.m_Y * rhs.m_Y ); }
395
395
396
396
// / <summary>
397
397
// / Division operator overload for a Vector and a float.
0 commit comments