Hacker News new | ask | show | jobs
by zeristor 1380 days ago
Interesting point if it had been apparent it would have been an issue, at what point does a poor Pi become an issue?

What would a Pi of 3.0 do?

4 comments

Here's a presentation show what happens to rendering in the game Doom when π has different values.

https://media.ccc.de/v/mch2022-236-non-euclidean-doom-what-h...

A professor comes around and criticizes it as it is about to become law:

- https://en.wikipedia.org/wiki/Indiana_Pi_Bill

- https://www.straightdope.com/21341975/did-a-state-legislatur...

The value was superior to mathematical Pi (as is best float approximation, but not best double approximation), such as having 2*PI normalized into [0,2*Pi] by standard trigonometric functions (which use accurate approximations of Pi) would not preserve it and yield a value close to 4.2e-10, which could cause suprises (for example if angular ranges are defined as (start,end) and not (start,span)).
In this case not a lot happens since it's only used for Z rotation.