mirror of
https://github.com/SFML/SFML.git
synced 2025-01-18 15:25:12 +08:00
Make pi/tau variables inline
This commit is contained in:
parent
74a460206c
commit
d4ff27caad
@ -34,8 +34,8 @@ namespace sf
|
|||||||
{
|
{
|
||||||
namespace priv
|
namespace priv
|
||||||
{
|
{
|
||||||
constexpr float pi = 3.141592654f;
|
inline constexpr float pi = 3.141592654f;
|
||||||
constexpr float tau = pi * 2.f;
|
inline constexpr float tau = pi * 2.f;
|
||||||
|
|
||||||
constexpr float positiveRemainder(float a, float b)
|
constexpr float positiveRemainder(float a, float b)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user