Re:How to pack ternary numbers in 8-bit bytes
by taeric on Thursday December 05, 2024 @12:11PM
(#42330144)
Yeah, I was making the mistake of thinking this was storing ternary in a BCD like scheme. I... honestly don't know how I talked myself into that.
Re:How to pack ternary numbers in 8-bit bytes
by hinkley on Thursday December 05, 2024 @03:09PM
(#42332169)
Doom also famously redefined a circle as 256° and reworked all of their trigonometry and polar coordinate translations to match. And so the smallest increment of angle you could do in the game was around 85 arc minutes.
Re:How to pack ternary numbers in 8-bit bytes
by kristianp on Friday December 06, 2024 @05:41AM
(#42338451)
> famously redefined a circle as 256°
Famously? Where can I read about Doom's odd trigonometry?
Re:How to pack ternary numbers in 8-bit bytes
by kristianp on Friday December 06, 2024 @06:15AM
(#42338682)
I found one reference here: https://www.doomworld.com/forum/topic/103245-question-about-...
3^5 ~ 8b
5^3 ~ 7b
2 * 5 * 7^2 ~ 9b
2 * 3 * 5 ~ 5b
11 * 11 ~ 7b
3 * 5 * 7 ~ 7b
etc.