Tech & AI News
Hacker News

Turns are Better than Radians

The article shows that code converting a normalized value h (0-1) to radians before calling sin or cos needlessly multiplies by π or τ, only for the trig implementation to immediately divide by π (4/π factor). Using the original 0-1 domain eliminates the extra multiply, yields exact representations for common angles (e.g., 0.25 for 90°), and improves both performance and precision.