mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
fixed naming
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,10 +3,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include "omath/Vector4.h"
|
#include "omath/Vector4.h"
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
|
||||||
namespace omath
|
namespace omath
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user