diff --git a/include/omath/Vector2.h b/include/omath/Vector2.h index 1cfdd7c..f04da2d 100644 --- a/include/omath/Vector2.h +++ b/include/omath/Vector2.h @@ -166,7 +166,6 @@ namespace omath return {x / fl, y / fl}; } - // Normalize the vector [[nodiscard]] Vector2 Normalized() const; diff --git a/include/omath/projection/Camera.h b/include/omath/projection/Camera.h index 4bbd069..799c37d 100644 --- a/include/omath/projection/Camera.h +++ b/include/omath/projection/Camera.h @@ -27,11 +27,7 @@ namespace omath::projection 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; [[nodiscard]] Matrix GetViewMatrix() const; - [[nodiscard]] Matrix GetProjectionMatrix() const; - [[nodiscard]] Matrix GetTranslationMatrix() const; - [[nodiscard]] Matrix GetOrientationMatrix() const; [[nodiscard]] std::expected WorldToScreen(const Vector3& worldPosition) const; diff --git a/source/prediction/Engine.cpp b/source/prediction/Engine.cpp index 80cf447..b6d7e5d 100644 --- a/source/prediction/Engine.cpp +++ b/source/prediction/Engine.cpp @@ -45,7 +45,7 @@ namespace omath::prediction const Vector3 &targetPosition) const { const auto bulletGravity = m_gravityConstant * projectile.m_gravityScale; - const auto delta = targetPosition - projectile.m_origin;; + const auto delta = targetPosition - projectile.m_origin; const auto distance2d = delta.Length2D();