From 978656b573507b5e82652aed5f8e4e7a7dada01e Mon Sep 17 00:00:00 2001 From: Vladislav Alpatov Date: Sat, 1 Mar 2025 21:17:03 +0300 Subject: [PATCH] refactored --- include/omath/Vector3.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/omath/Vector3.hpp b/include/omath/Vector3.hpp index 6fe1229..af90ed6 100644 --- a/include/omath/Vector3.hpp +++ b/include/omath/Vector3.hpp @@ -24,7 +24,7 @@ namespace omath class Vector3 : public Vector2 { public: - Type z = 0.f; + Type z = static_cast(0); constexpr Vector3(const Type& x, const Type& y, const Type& z) : Vector2(x, y), z(z) { } constexpr Vector3() : Vector2() {}; @@ -172,7 +172,7 @@ namespace omath [[nodiscard]] constexpr Vector3 operator-() const { - return Vector3{-this->x, -this->y, -z}; + return {-this->x, -this->y, -z}; } [[nodiscard]] constexpr Vector3 operator+(const Vector3& v) const