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