Build: qualify Windows runtime and fix MinGW portability (refs #38)
This commit is contained in:
1 parent
1335fa86c3
commit
5d4589056a
8 files changed
+73
-27
No files matched your search
@@ -4,6 +4,7 @@
|
||||
#include <Void/Testing/Test.hpp>
|
||||
|
||||
#include <cmath>
|
||||
#include <numbers>
|
||||
|
||||
static constexpr float EPS = 1e-5f;
|
||||
|
||||
@@ -129,7 +130,7 @@ Void::Testing::Test mat4_scale()
|
||||
Void::Testing::Test mat4_rotation_z_90_degrees()
|
||||
{
|
||||
const auto R = Void::Math::Mat4f::rotation_z(
|
||||
static_cast<float>(M_PI) / 2.f);
|
||||
std::numbers::pi_v<float> / 2.f);
|
||||
const Void::Math::Vec4f v{1, 0, 0, 0};
|
||||
const auto r = R * v;
|
||||
Void::Testing::expect(std::abs(r.x - 0.f) < EPS);
|
||||
|
||||
Reference in new issue
Block a user