News for hackers. Stuff that matters.
Re:Rendering my (billiard) balls in a fragment shader by jffhn on Sunday September 11, 2022 @05:32AM (#32798198)
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)).

There are no comments on this comment yet.