Skip to content

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

Description

@Draco18s

#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions