Removed redundant function definitions in CameraMatrix and used the ones in Math.hpp
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "Plane.hpp"
|
||||
#include "Rect2.hpp"
|
||||
#include "Transform.hpp"
|
||||
#include "Math.hpp"
|
||||
|
||||
#include <vector>
|
||||
|
||||
@@ -39,7 +40,7 @@ struct CameraMatrix {
|
||||
|
||||
static real_t get_fovy(real_t p_fovx, real_t p_aspect) {
|
||||
|
||||
return rad2deg(atan(p_aspect * tan(deg2rad(p_fovx) * 0.5)) * 2.0);
|
||||
return Math::rad2deg(atan(p_aspect * tan(Math::deg2rad(p_fovx) * 0.5)) * 2.0);
|
||||
}
|
||||
|
||||
static inline double deg2rad(double p_y) { return p_y * Math_PI / 180.0; }
|
||||
|
||||
Reference in New Issue
Block a user