From 98a4fa2b0d79298fa29b048a3ba15c3bf5aed8cd Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Fri, 16 Dec 2022 17:17:31 +0000 Subject: Added clang format (#1239) * clang-format stuff and format files --- src/helpers/Vector2D.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/helpers/Vector2D.cpp') diff --git a/src/helpers/Vector2D.cpp b/src/helpers/Vector2D.cpp index a96411e6..97a9685c 100644 --- a/src/helpers/Vector2D.cpp +++ b/src/helpers/Vector2D.cpp @@ -6,7 +6,11 @@ Vector2D::Vector2D(double xx, double yy) { y = yy; } -Vector2D::Vector2D() { x = 0; y = 0; } +Vector2D::Vector2D() { + x = 0; + y = 0; +} + Vector2D::~Vector2D() {} double Vector2D::normalize() { @@ -24,8 +28,5 @@ Vector2D Vector2D::floor() { } Vector2D Vector2D::clamp(const Vector2D& min, const Vector2D& max) { - return Vector2D( - std::clamp(this->x, min.x, max.x == 0 ? INFINITY : max.x), - std::clamp(this->y, min.y, max.y == 0 ? INFINITY : max.y) - ); + return Vector2D(std::clamp(this->x, min.x, max.x == 0 ? INFINITY : max.x), std::clamp(this->y, min.y, max.y == 0 ? INFINITY : max.y)); } \ No newline at end of file -- cgit v1.2.3