Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did you know your value of Pi is wrong? #249

Open
Draco18s opened this issue May 19, 2024 · 1 comment
Open

Did you know your value of Pi is wrong? #249

Draco18s opened this issue May 19, 2024 · 1 comment

Comments

@Draco18s
Copy link

Draco18s commented May 19, 2024

#define ONE_OVER_2PI 0.159154942f //% (1.0f / (2.0f * 3.141592657f))

It should be 3.141592654 (with that one-over-two-pi should be 0.159154943)

This value of pi originated in the original Doom from 1993 and has been copy-pasted into thousands of projects from one to another ever since.

https://youtu.be/_ZSFRWJCUY4?t=897

@GF-Huang
Copy link

Interesting :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants