From 7928cfa126d059c7db83f75295e67e464f3304e5 Mon Sep 17 00:00:00 2001 From: Orange Date: Tue, 3 Sep 2024 21:46:32 +0300 Subject: [PATCH] fixed naming --- include/omath/Matrix.h | 2 +- source/Matrix.cpp | 4 ++-- source/Vector4.cpp | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/omath/Matrix.h b/include/omath/Matrix.h index a8d0028..c157127 100644 --- a/include/omath/Matrix.h +++ b/include/omath/Matrix.h @@ -26,7 +26,7 @@ namespace omath static Matrix OrientationMatrix(const Vector3& forward, const Vector3& right, const Vector3& up); [[nodiscard]] - static Matrix ProjectionMatrix(float fielOfView, float aspectRatio,float near, float far); + static Matrix ProjectionMatrix(float fieldOfView, float aspectRatio, float near, float far); Matrix(const Matrix &other); diff --git a/source/Matrix.cpp b/source/Matrix.cpp index 0545490..1c01ddd 100644 --- a/source/Matrix.cpp +++ b/source/Matrix.cpp @@ -350,10 +350,10 @@ namespace omath }; } - Matrix Matrix::ProjectionMatrix(const float fielOfView, const float aspectRatio, const float near, + Matrix Matrix::ProjectionMatrix(const float fieldOfView, const float aspectRatio, const float near, const float far) { - const float fovHalfTan = std::tan(angles::DegreesToRadians(fielOfView) / 2.f); + const float fovHalfTan = std::tan(angles::DegreesToRadians(fieldOfView) / 2.f); return { diff --git a/source/Vector4.cpp b/source/Vector4.cpp index 6d3ae82..1d54d80 100644 --- a/source/Vector4.cpp +++ b/source/Vector4.cpp @@ -3,10 +3,9 @@ // #include "omath/Vector4.h" - -#include #include + namespace omath {