mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 23:13:26 +00:00
added check, removed deprecated code
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#pragma once
|
||||
#include "omath/Vector3.hpp"
|
||||
#include "omath/Mat.hpp"
|
||||
|
||||
#include "omath/Angle.hpp"
|
||||
|
||||
namespace omath::opengl
|
||||
{
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace omath::source
|
||||
{
|
||||
constexpr auto kMultiplyFactor = Type(0.75);
|
||||
|
||||
const float fovHalfTan = std::tan(angles::DegreesToRadians(fieldOfView) / 2) * kMultiplyFactor;
|
||||
const Type fovHalfTan = std::tan(angles::DegreesToRadians(fieldOfView) / 2) * kMultiplyFactor;
|
||||
|
||||
return {
|
||||
{-static_cast<Type>(1) / (aspectRatio * fovHalfTan), 0, 0, 0},
|
||||
|
||||
Reference in New Issue
Block a user