From c76f6e91b00f3c40b928ca461602cfdfd8b782ea Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 17 Mar 2025 02:41:08 +0300 Subject: [PATCH] fix --- include/omath/Angle.hpp | 2 -- include/omath/engines/Source/Camera.hpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/omath/Angle.hpp b/include/omath/Angle.hpp index 45e8e06..253604d 100644 --- a/include/omath/Angle.hpp +++ b/include/omath/Angle.hpp @@ -96,7 +96,6 @@ namespace omath return Cos() / Sin(); } - [[nodiscard]] constexpr Angle& operator+=(const Angle& other) { if constexpr (flags == AngleFlags::Normalized) @@ -116,7 +115,6 @@ namespace omath [[nodiscard]] constexpr std::partial_ordering operator<=>(const Angle& other) const = default; - [[nodiscard]] constexpr Angle& operator-=(const Angle& other) { return operator+=(-other); diff --git a/include/omath/engines/Source/Camera.hpp b/include/omath/engines/Source/Camera.hpp index ef895ba..a0b9f77 100644 --- a/include/omath/engines/Source/Camera.hpp +++ b/include/omath/engines/Source/Camera.hpp @@ -13,6 +13,7 @@ namespace omath::source Camera(const Vector3& position, const ViewAngles& viewAngles, const projection::ViewPort& viewPort, const Angle& fov, float near, float far); void LookAt(const Vector3& target) override; + protected: [[nodiscard]] Mat4x4 CalcViewMatrix() const override; [[nodiscard]] Mat4x4 CalcProjectionMatrix() const override; };