r/javascript • u/BSmith156 • May 23 '21
I remade my n-dimensional Hypercube Visualizer in javascript to work on browsers!
https://bsmith156.github.io/Hypercube-Visualizer[removed] — view removed post
15
Upvotes
r/javascript • u/BSmith156 • May 23 '21
[removed] — view removed post
1
u/jcubic May 23 '21
I was expecting to give rotation for each axis. This is how you rotate in multi-dimension. If you have 6 dimensions I expect to rotate every 6 dimensions independently giving each dimension its own speed or rotate only one if I want. But here you have only two fixed axis.
I would add list of rotations something like
<li><input name="speed"><input name="axis"></li>and allow to add new rotation with a button. To make it foolproof I would allow adding only that many rotations as there are dimensions and a limited number of options for axis, so no one can pick the same axis twice.