54

Web 魔方模拟器的设计与实现

 5 years ago
source link: https://juejin.im/post/5b837c0b51882542d950efb4
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
魔方是个结构简单而变化无穷的神奇玩具。那么如何在万能的浏览器里模拟出魔方的无尽变换,又如何将其还原呢?下面让我们一步步地来一探究竟吧。 魔方的抽象 拆解过魔方的同学可能知道,现实中魔方的内部结构包含了中轴、弹簧、螺丝等机械装置。但当我们只是想要「模拟」它的时

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK