Skip to content

Commit

Permalink
fix constant error
Browse files Browse the repository at this point in the history
  • Loading branch information
mchenwang committed Feb 27, 2023
1 parent e0f1914 commit daee579
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CoreLayer/Math/Constant.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#pragma once
#define _USE_MATH_DEFINES
#include <cmath>
#include <limits>

#ifdef FLT_MAX
#undef FLT_MAX
#endif // FLT_MAX

constexpr float PI = M_PI;
constexpr float INV_PI = 1.f / M_PI;
constexpr float FLT_MAX = std::numeric_limits<float>::max();
Expand Down

0 comments on commit daee579

Please sign in to comment.