Post AVcPdyEDoX86N6b60G by arnelson@mastodon.online
 (DIR) More posts by arnelson@mastodon.online
 (DIR) Post #AVcDDo5LhjolvzCloO by arnelson@mastodon.online
       2023-05-13T14:16:28Z
       
       0 likes, 1 repeats
       
       Insane game-engine-adjacent idea: represent cartesian coordinates on a hexagonal grid as base-√3 balanced ternary, to eliminate the √3 in hexagon sizessomeone please talk me out of this so I can work on Tapir instead
       
 (DIR) Post #AVcHucGPvpmXXV3CFs by Hyolobrika@berserker.town
       2023-05-13T15:37:38Z
       
       1 likes, 0 repeats
       
       @arnelsonDo you mean this?https://en.wikipedia.org/wiki/Generalized_balanced_ternary
       
 (DIR) Post #AVcJDN2iqYtnmy9SYS by arnelson@mastodon.online
       2023-05-13T15:52:13Z
       
       0 likes, 0 repeats
       
       @Hyolobrika No, I'm already using that (and it's really cool). That solves a problem of uniquely addressing hexes in 1 dimension and grouping them, and it produces some cool patterns (look up Gosper Islands).What I'm talking about is the problem of going from hex coords to [x,y] Cartesian coords. There's no way to do this cleanly because either the width or the height of a hexagon will contain sqrt(3). You can cheat by approximating, and that works well enough, but...
       
 (DIR) Post #AVcPdyEDoX86N6b60G by arnelson@mastodon.online
       2023-05-13T15:53:57Z
       
       0 likes, 1 repeats
       
       @Hyolobrika ...then I saw this video about irrational bases (https://www.youtube.com/watch?v=hI-pwt7LyUw) and realized that a sqrt(3) base could actually cleanly represent [x,y] coords on a hex map as kinda-sorta-integers.There's probably no reason do this except my unhealthy fascination with weird math.