- Use std::numbers::pi_v<float> * 2.0F directly for TwoPi - Makes the mathematical origin more explicit Co-authored-by: djeada <[email protected]>
@@ -4,7 +4,7 @@
namespace Render::GL::MathConstants {
inline constexpr float Pi = std::numbers::pi_v<float>;
-inline constexpr float TwoPi = 2.0F * Pi;
+inline constexpr float TwoPi = std::numbers::pi_v<float> * 2.0F;
} // namespace Render::GL::MathConstants
namespace Render::GL::VertexAttrib {