diff --git a/include/omath/projection/Camera.h b/include/omath/projection/Camera.h index d389077..4bbd069 100644 --- a/include/omath/projection/Camera.h +++ b/include/omath/projection/Camera.h @@ -26,11 +26,8 @@ namespace omath::projection public: Camera(const Vector3& position, const Vector3& viewAngles, const ViewPort& viewPort, float fov, float near, float far); void SetViewAngles(const Vector3& viewAngles); + [[nodiscard]] const Vector3& GetViewAngles() const; - static float& GetFloat1(); - - static float& GetFloat2(); - [[nodiscard]] Matrix GetViewMatrix() const; [[nodiscard]] Matrix GetProjectionMatrix() const; [[nodiscard]] Matrix GetTranslationMatrix() const; diff --git a/source/projection/Camera.cpp b/source/projection/Camera.cpp index 63e5578..49bb12c 100644 --- a/source/projection/Camera.cpp +++ b/source/projection/Camera.cpp @@ -21,16 +21,6 @@ namespace omath::projection m_farPlaneDistance = far; } - float& Camera::GetFloat1() { - static float m_float1 = 0.36689f; - return m_float1; - } - - float& Camera::GetFloat2() { - static float m_float2 = 1.14500f; - return m_float2; - } - Matrix Camera::GetViewMatrix() const { const auto forward = Vector3::ForwardVector(m_viewAngles.x, m_viewAngles.y);