fixed naming

This commit is contained in:
2024-09-03 21:46:32 +03:00
parent f0d4e60ce0
commit 7928cfa126
3 changed files with 4 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ namespace omath
static Matrix OrientationMatrix(const Vector3& forward, const Vector3& right, const Vector3& up); static Matrix OrientationMatrix(const Vector3& forward, const Vector3& right, const Vector3& up);
[[nodiscard]] [[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); Matrix(const Matrix &other);

View File

@@ -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 far)
{ {
const float fovHalfTan = std::tan(angles::DegreesToRadians(fielOfView) / 2.f); const float fovHalfTan = std::tan(angles::DegreesToRadians(fieldOfView) / 2.f);
return return
{ {

View File

@@ -3,10 +3,9 @@
// //
#include "omath/Vector4.h" #include "omath/Vector4.h"
#include <algorithm>
#include <cmath> #include <cmath>
namespace omath namespace omath
{ {