This commit is contained in:
2025-03-17 02:41:08 +03:00
parent d1d06c24ca
commit c76f6e91b0
2 changed files with 1 additions and 2 deletions

View File

@@ -96,7 +96,6 @@ namespace omath
return Cos() / Sin(); return Cos() / Sin();
} }
[[nodiscard]]
constexpr Angle& operator+=(const Angle& other) constexpr Angle& operator+=(const Angle& other)
{ {
if constexpr (flags == AngleFlags::Normalized) if constexpr (flags == AngleFlags::Normalized)
@@ -116,7 +115,6 @@ namespace omath
[[nodiscard]] [[nodiscard]]
constexpr std::partial_ordering operator<=>(const Angle& other) const = default; constexpr std::partial_ordering operator<=>(const Angle& other) const = default;
[[nodiscard]]
constexpr Angle& operator-=(const Angle& other) constexpr Angle& operator-=(const Angle& other)
{ {
return operator+=(-other); return operator+=(-other);

View File

@@ -13,6 +13,7 @@ namespace omath::source
Camera(const Vector3<float>& position, const ViewAngles& viewAngles, const projection::ViewPort& viewPort, Camera(const Vector3<float>& position, const ViewAngles& viewAngles, const projection::ViewPort& viewPort,
const Angle<float, 0.f, 180.f, AngleFlags::Clamped>& fov, float near, float far); const Angle<float, 0.f, 180.f, AngleFlags::Clamped>& fov, float near, float far);
void LookAt(const Vector3<float>& target) override; void LookAt(const Vector3<float>& target) override;
protected:
[[nodiscard]] Mat4x4 CalcViewMatrix() const override; [[nodiscard]] Mat4x4 CalcViewMatrix() const override;
[[nodiscard]] Mat4x4 CalcProjectionMatrix() const override; [[nodiscard]] Mat4x4 CalcProjectionMatrix() const override;
}; };