Skip to content

Commit 9e9bc7d

Browse files
committed
fix format
1 parent ec38df6 commit 9e9bc7d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

include/units/Vector2D.hpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ template <isQuantity T> class Vector2D {
6565
* @param other vector to add
6666
* @return Vector2D<T>
6767
*/
68-
constexpr Vector2D<T> operator+(const Vector2D<T>& other) const { return Vector2D<T>(x + other.x, y + other.y); }
68+
constexpr Vector2D<T> operator+(const Vector2D<T>& other) const {
69+
return Vector2D<T>(x + other.x, y + other.y);
70+
}
6971

7072
/**
7173
* @brief - operator overload
@@ -76,7 +78,9 @@ template <isQuantity T> class Vector2D {
7678
* @param other vector to subtract
7779
* @return Vector2D<T>
7880
*/
79-
constexpr Vector2D<T> operator-(const Vector2D<T>& other) const { return Vector2D<T>(x - other.x, y - other.y); }
81+
constexpr Vector2D<T> operator-(const Vector2D<T>& other) const {
82+
return Vector2D<T>(x - other.x, y - other.y);
83+
}
8084

8185
/**
8286
* @brief * operator overload
@@ -231,7 +235,9 @@ template <isQuantity T> class Vector2D {
231235
* @param other the other vector
232236
* @return T
233237
*/
234-
constexpr T distanceTo(const Vector2D<T>& other) const { return sqrt(square(x - other.x, 2) + square(y - other.y, 2)); }
238+
constexpr T distanceTo(const Vector2D<T>& other) const {
239+
return sqrt(square(x - other.x, 2) + square(y - other.y, 2));
240+
}
235241

236242
/**
237243
* @brief normalize the vector

0 commit comments

Comments
 (0)