Verified Commit 28ccc7b8 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#42] Fixed M_PI to work cross compatible



Signed-off-by: Tobias Frisch's avatarTobias Frisch <tfrisch@uni-koblenz.de>
parent 1a4fcc5c
Pipeline #25725 failed with stages
in 3 minutes and 26 seconds
#include "vkcv/camera/Camera.hpp"
#include <iostream>
#include <cmath>
namespace vkcv::camera {
......@@ -60,7 +60,7 @@ namespace vkcv::camera {
float halfFovy = std::atan(tanHalfFovy);
if (halfFovy < 0) {
halfFovy += M_PIf32;
halfFovy += static_cast<float>(M_PI);
}
return halfFovy * 2.0f;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment